Given the following test suite:
class ParallelizeMe extends FunSuite with BeforeAndAfterAll {
override def beforeAll() = println("before")
override def afterAll() = println("after")
test("test 1") {
println("1a")
Thread.sleep(3000)
println("1b")
}
test("test 2") {
println("2a")
Thread.sleep(1000)
println("2b")
}
}
How can I run the tests (via sbt) in parallel? Ideally, I want the order of execution to produce the following on stdout:
before
1a
2a
2b
1b
after