mirror of https://github.com/sbt/sbt.git
add specs2 to list of known test frameworks
This commit is contained in:
parent
fcddde02e6
commit
7d08bfe3ca
|
|
@ -223,7 +223,7 @@ object Defaults extends BuildCommon
|
||||||
testLoader <<= (fullClasspath, scalaInstance) map { (cp, si) => TestFramework.createTestLoader(data(cp), si) },
|
testLoader <<= (fullClasspath, scalaInstance) map { (cp, si) => TestFramework.createTestLoader(data(cp), si) },
|
||||||
testFrameworks in GlobalScope :== {
|
testFrameworks in GlobalScope :== {
|
||||||
import sbt.TestFrameworks._
|
import sbt.TestFrameworks._
|
||||||
Seq(ScalaCheck, Specs, ScalaTest, ScalaCheckCompat, ScalaTestCompat, SpecsCompat, JUnit)
|
Seq(ScalaCheck, Specs2, Specs, ScalaTest, ScalaCheckCompat, ScalaTestCompat, SpecsCompat, JUnit)
|
||||||
},
|
},
|
||||||
loadedTestFrameworks <<= (testFrameworks, streams, testLoader) map { (frameworks, s, loader) =>
|
loadedTestFrameworks <<= (testFrameworks, streams, testLoader) map { (frameworks, s, loader) =>
|
||||||
frameworks.flatMap(f => f.create(loader, s.log).map( x => (f,x)).toIterable).toMap
|
frameworks.flatMap(f => f.create(loader, s.log).map( x => (f,x)).toIterable).toMap
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ object TestFrameworks
|
||||||
val ScalaCheck = new TestFramework("org.scalacheck.ScalaCheckFramework")
|
val ScalaCheck = new TestFramework("org.scalacheck.ScalaCheckFramework")
|
||||||
val ScalaTest = new TestFramework("org.scalatest.tools.ScalaTestFramework")
|
val ScalaTest = new TestFramework("org.scalatest.tools.ScalaTestFramework")
|
||||||
val Specs = new TestFramework("org.specs.runner.SpecsFramework")
|
val Specs = new TestFramework("org.specs.runner.SpecsFramework")
|
||||||
|
val Specs2 = new TestFramework("org.specs2.runner.SpecsFramework")
|
||||||
val JUnit = new TestFramework("com.novocode.junit.JUnitFramework")
|
val JUnit = new TestFramework("com.novocode.junit.JUnitFramework")
|
||||||
// These are compatibility frameworks included in the 'test-compat' library
|
// These are compatibility frameworks included in the 'test-compat' library
|
||||||
val ScalaCheckCompat = new TestFramework("sbt.impl.ScalaCheckFramework")
|
val ScalaCheckCompat = new TestFramework("sbt.impl.ScalaCheckFramework")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue