mirror of https://github.com/sbt/sbt.git
fix scripted tests/*
This commit is contained in:
parent
24be2e5f25
commit
154134adb0
|
|
@ -1,4 +1,4 @@
|
|||
libraryDependencies += "org.scalatest" % "scalatest_2.9.1" % "1.6.1" % "test"
|
||||
libraryDependencies += "org.scalatest" % "scalatest_2.10.0-RC3" % "1.8-B1" % "test"
|
||||
|
||||
|
||||
testOptions in Configurations.Test ++= {
|
||||
|
|
|
|||
|
|
@ -1,16 +0,0 @@
|
|||
import sbt._
|
||||
|
||||
class ArgumentTest(info: ProjectInfo) extends DefaultProject(info)
|
||||
{
|
||||
val st = "org.scalatest" % "scalatest" % "1.3"
|
||||
|
||||
override def testOptions =
|
||||
super.testOptions ++
|
||||
args("success1", "-n", "test2 test3") ++
|
||||
args("success2", "-n", "test2") ++
|
||||
args("success3", "-n", "test3") ++
|
||||
args("failure1", "-n", "test1") ++
|
||||
args("failure2", "-n", "test1 test4") ++
|
||||
args("failure3", "-n", "test1 test3")
|
||||
def args(path: Path, args: String*): Seq[TestOption] = if(path.exists) TestArgument(args : _*) :: Nil else Nil
|
||||
}
|
||||
|
|
@ -13,9 +13,10 @@ object ForkTestsTest extends Build {
|
|||
def groupPrefix(idx: Int) = groupId(idx) + "_file_"
|
||||
|
||||
lazy val root = Project("root", file("."), settings = defaultSettings ++ Seq(
|
||||
scalaVersion := "2.9.2",
|
||||
testGrouping <<= definedTests in Test map { tests =>
|
||||
assert(tests.size == 1)
|
||||
val groups = Stream const tests(0) take totalFiles grouped groupSize
|
||||
val groups = Stream continually tests(0) take totalFiles grouped groupSize
|
||||
for ((ts, idx) <- groups.toSeq.zipWithIndex) yield {
|
||||
new Group(groupId(idx), ts, SubProcess(Seq("-Dgroup.prefix=" + groupPrefix(idx), "-Dgroup.size=" + ts.size)))
|
||||
}
|
||||
|
|
@ -31,6 +32,6 @@ object ForkTestsTest extends Build {
|
|||
}
|
||||
},
|
||||
concurrentRestrictions := Tags.limit(Tags.ForkedTestGroup, 2) :: Nil,
|
||||
libraryDependencies += "org.scalatest" % "scalatest_2.9.0" % "1.6.1" % "test"
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test"
|
||||
))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,5 +12,5 @@ object B extends Build
|
|||
resolvers += ScalaToolsReleases
|
||||
)
|
||||
|
||||
lazy val specs = "org.specs2" % "specs2_2.9.1" % "1.7.1" % "it,test"
|
||||
lazy val specs = "org.specs2" % "specs2_2.10" % "1.12.3" % "it,test"
|
||||
}
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
libraryDependencies += "org.specs2" % "specs2_2.9.1" % "1.7.1" % "test"
|
||||
libraryDependencies += "org.specs2" % "specs2_2.10" % "1.12.3" % "test"
|
||||
|
||||
resolvers += ScalaToolsReleases
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
libraryDependencies += "org.specs2" % "specs2_2.9.1" % "1.7.1" % "test"
|
||||
scalaVersion := "2.9.1"
|
||||
|
||||
libraryDependencies += "org.specs2" %% "specs2" % "1.7.1" % "test"
|
||||
|
||||
resolvers += ScalaToolsReleases
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ object Ticket543Test extends Build {
|
|||
|
||||
lazy val root = Project("root", file("."), settings = defaultSettings ++ Seq(
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test",
|
||||
scalaVersion := "2.9.2",
|
||||
fork := true,
|
||||
testListeners += new TestReportListener {
|
||||
def testEvent(event: TestEvent) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import Defaults._
|
|||
|
||||
object B extends Build {
|
||||
lazy val root = Project("root", file("."), settings = defaultSettings ++ Seq(
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8" % "test" cross(CrossVersion.full),
|
||||
libraryDependencies += "org.scalatest" %% "scalatest" % "1.8-B1" % "test" cross(CrossVersion.full),
|
||||
parallelExecution in test := false
|
||||
))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue