Skip to content

Commit

Permalink
add specs2 to list of known test frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
harrah committed May 29, 2011
1 parent fcddde0 commit 7d08bfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main/Defaults.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ object Defaults extends BuildCommon
testLoader <<= (fullClasspath, scalaInstance) map { (cp, si) => TestFramework.createTestLoader(data(cp), si) },
testFrameworks in GlobalScope :== {
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) =>
frameworks.flatMap(f => f.create(loader, s.log).map( x => (f,x)).toIterable).toMap
Expand Down
1 change: 1 addition & 0 deletions testing/TestFramework.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ object TestFrameworks
val ScalaCheck = new TestFramework("org.scalacheck.ScalaCheckFramework")
val ScalaTest = new TestFramework("org.scalatest.tools.ScalaTestFramework")
val Specs = new TestFramework("org.specs.runner.SpecsFramework")
val Specs2 = new TestFramework("org.specs2.runner.SpecsFramework")
val JUnit = new TestFramework("com.novocode.junit.JUnitFramework")
// These are compatibility frameworks included in the 'test-compat' library
val ScalaCheckCompat = new TestFramework("sbt.impl.ScalaCheckFramework")
Expand Down

0 comments on commit 7d08bfe

Please sign in to comment.