Fix test framework tests

This commit is contained in:
Eugene Yokota 2016-05-06 00:34:12 -04:00
parent 28c37d1014
commit 18ef703386
7 changed files with 32 additions and 20 deletions

View File

@ -5,8 +5,8 @@ val check = taskKey[Unit]("Check that tests are executed in parallel")
lazy val root = (project in file(".")).
settings(
scalaVersion := "2.9.2",
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test",
scalaVersion := "2.11.8",
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
fork in Test := true,
check := {
val nbProc = java.lang.Runtime.getRuntime().availableProcessors()

View File

@ -1,4 +1,4 @@
scalaVersion := "2.9.2"
scalaVersion := "2.11.8"
organization := "org.example"
@ -6,5 +6,7 @@ name := "fork-uncaught"
fork := true
libraryDependencies += "org.scalatest" % "scalatest_2.9.2" % "2.0.M3" % "test" intransitive()
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
"org.scalatest" %% "scalatest" % "2.2.6" % Test intransitive()
)

View File

@ -11,7 +11,7 @@ def groupPrefix(idx: Int) = groupId(idx) + "_file_"
lazy val root = (project in file(".")).
settings(
scalaVersion := "2.9.2",
scalaVersion := "2.11.8",
testGrouping in Test <<= definedTests in Test map { tests =>
assert(tests.size == 3)
for (idx <- 0 until groups) yield
@ -27,5 +27,8 @@ lazy val root = (project in file(".")).
sys.error("Files were not created:\n\t" + absent.mkString("\n\t"))
},
concurrentRestrictions := Tags.limit(Tags.ForkedTestGroup, 2) :: Nil,
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % Test
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
"org.scalatest" %% "scalatest" % "2.2.6" % Test
)
)

View File

@ -10,8 +10,8 @@ val failingReportFile = "target/test-reports/another.pkg.FailingTest.xml"
lazy val root = (project in file(".")).
settings(
scalaVersion := "2.9.2",
libraryDependencies += "com.novocode" % "junit-interface" % "0.10" % "test",
scalaVersion := "2.11.8",
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,
// TODO use matchers instead of sys.error
checkReport := {

View File

@ -1,7 +1,10 @@
scalaVersion := "2.10.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.0.M6-SNAP28"
testOptions in Test += Tests.Argument("-r", "custom.CustomReporter")
fork := true
lazy val root = (project in file(".")).
settings(
scalaVersion := "2.11.8",
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
"org.scalatest" %% "scalatest" % "2.2.6"
),
testOptions in Test += Tests.Argument("-r", "custom.CustomReporter"),
fork := true
)

View File

@ -1,3 +1,4 @@
scalaVersion := "2.9.1"
lazy val specs2 = "org.specs2" %% "specs2" % "2.3.11"
scalaVersion := "2.11.8"
libraryDependencies += "org.specs2" %% "specs2" % "1.7.1" % "test"
libraryDependencies += specs2 % Test

View File

@ -7,8 +7,11 @@ val check = TaskKey[Unit]("check", "Check correct error has been returned.")
lazy val root = (project in file(".")).
settings(
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % Test,
scalaVersion := "2.9.2",
libraryDependencies ++= List(
"org.scala-lang.modules" %% "scala-xml" % "1.0.1",
"org.scalatest" %% "scalatest" % "2.2.6"
),
scalaVersion := "2.11.8",
fork := true,
testListeners += new TestReportListener {
def testEvent(event: TestEvent): Unit = {