These are chat archives for etorreborre/specs2
parallelExecution in Test := false?
parallelExecution in Test... what exactly does that sbt option do? how does it pass that information over to the specs2-runner (
org.specs2.runner.Specs2Framework)? Can I pass it some other way?
parallelExecutionruns class concurrently and specs2 doesn’t control that. But inside a specification specs2 runs examples concurrently, is that what you want to deactivate? In that case you need to add the
sequentialargument to specs2
Aha. So it's sbt that's doing the parallelization -- I thought it was the
org.specs2.runner.Specs2Framework. After futher experimenting, it seems like my tests actually do run 1-by-1; and not in parallel. (But for some reason, I had to adjust postgres' max number of connections up when going from sbt to mill as the test runner. Not sure why. Maybe mill just executes the spec files with slighlty shorter intervals?)
Anyway, it works now :) I'm aware of the
sequential-argument, and I'm already using it. (Unfortunately our tests are mostly integration, so order does matter a lot)
testGroupbut I’ve never tried it