mirror of https://github.com/sbt/sbt.git
When 1 is passed in as the sbtInstances argument to runInParallel, all of the tests get batched together in a single sbt session. The run methods in ScriptedRunner were delegating to runInParallel and as a result were causing all of the tests to be batched, which was not how it used to work in sbt 1.3.x. To fix this we can instead pass in Int.MaxValue for the number of sbt instances. The Int.MaxValue parameter causes the batch size to be set to 1 in the batchScriptedRunner method which causes the scriptedRunners variable to have the same size as the number of tests. We then can prevent a parallel array from being used if the sbtInstances is deteced to be the Int.MaxValue sentinel. |
||
|---|---|---|
| .. | ||
| src/main/scala/sbt/scriptedtest | ||
| NOTICE | ||