Drop deprecated SubProcess apply overload

This commit is contained in:
Dale Wijnand 2017-04-11 13:28:48 +01:00
parent 9f688be9f5
commit cef287b6e8
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
3 changed files with 7 additions and 6 deletions

View File

@ -110,10 +110,6 @@ object Tests {
/** Configures a group of tests to be forked in a new JVM with forking options specified by `config`. */
final case class SubProcess(config: ForkOptions) extends TestRunPolicy
object SubProcess {
@deprecated("Construct SubProcess with a ForkOptions argument.", "0.13.0")
def apply(javaOptions: Seq[String]): SubProcess = SubProcess(ForkOptions(runJVMOptions = javaOptions))
}
/** A named group of tests configured to run in the same JVM or be forked. */
final case class Group(name: String, tests: Seq[TestDefinition], runPolicy: TestRunPolicy)

View File

@ -4,6 +4,7 @@ testGrouping := {
new Tests.Group(
name = test.name,
tests = Seq(test),
runPolicy = Tests.SubProcess(javaOptions = Seq.empty[String]))
runPolicy = Tests.SubProcess(ForkOptions(runJVMOptions = Seq.empty[String]))
)
}
}

View File

@ -16,7 +16,11 @@ lazy val root = (project in file(".")).
val tests = (definedTests in Test).value
assert(tests.size == 3)
for (idx <- 0 until groups) yield
new Group(groupId(idx), tests, SubProcess(Seq("-Dgroup.prefix=" + groupPrefix(idx))))
new Group(
groupId(idx),
tests,
SubProcess(ForkOptions(runJVMOptions = Seq("-Dgroup.prefix=" + groupPrefix(idx))))
)
},
check := {
val files =