On an environment with
- scala 2.12
- sbt 1.1.4
- scalatest 3.0.5
I'm not able to run tests in the same class in a parallel because it looks like SBT will run in a parallel way every class, not the test in the same class.
e.g.
- I have a class called
TestAinqa.parallelism package. This class contains two tests calledtest1andtest2. - I have another class called
TestBinqa.parallelism packagethat contains a test calledtest1.
if I run
testOnly qa.parallelism.*
by log I understand that TestA.test1 and TestB.test1 was executed simultaneously,
but if I run
testOnly qa.parallelism.TestA
that contains two tests (test1 and test2), I understand that test2 will be executed at the end of test1.
Is there a way to run simultaneously every test of a single class or I should create a class for every single test?
Thanks.