mirror of https://github.com/sbt/sbt.git
Drop deprecated SubProcess apply overload
This commit is contained in:
parent
9f688be9f5
commit
cef287b6e8
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in New Issue