Issue
In this post, I asked a small question as part of a bigger problem. Since I didn't get responses yet, I put my question here:
Is it reasonable to suppose that JUnit executes test cases sequentially: a test case ends befores the next one starts. Does it differ between JUnit versions (my priority is on JUnit4)? And if not, is there a simple way to force JUnit to execute tests sequentially?
Thank you
Solution
Yes, by default I believe it runs tests sequentially.
JUnit 4.6 introduced an experimental ParallelRunner
to run tests in parallel - I don't know of its current status. I would expect parallelism to remain an "opt-in" feature by default though. (Judging by other answers, it looks like this is now here to stay but in a slightly different form - and still opt-in.)
Answered By - Jon Skeet
Answer Checked By - David Marino (JavaFixing Volunteer)