I have multiple Scala classes in different packages and each has its own test. In case it matters, they all extend org.scalatest.flatspec.AnyFlatSpecLike
class. One of these tests manipulates System.out
(I know that in general that is not a good idea, but that is not the subject of this post). A few other tests check log messages.
Suppose these two kinds of tests are in classes A
, B
, and C
, and many many other tests are in other classes/files. How can I make sure
- the execution of
A
,B
, andC
will be sequential. That is when tests inA
are running, no other test (not just tests fromB
andC
) is running. - When none of these three suits are running, there is no restriction on the parallel execution of other tests?