sbt/scripted-sbt-redux
Ethan Atkins 3b9b20051f Restore old scripted behavior with batch tests disabled
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.
2020-11-04 18:47:31 -08:00
..
src/main/scala/sbt/scriptedtest Restore old scripted behavior with batch tests disabled 2020-11-04 18:47:31 -08:00
NOTICE create scripted-sbt-redux 2018-07-10 03:13:47 -04:00