jeudi 10 octobre 2019

How to run some testcases in parallel and some in serial manner in java junit test class?

I have a situation where some of the testclasses in my test suite needs to be run in sequential way and others in parallel way.

Basically, we are running the test cases using maven

mvn -DreuseForks=false clean install

The property -DreuseForks=false ensures that the testcases are run in parallel and that is what we want so the entire suite is efficient. But some test classes are there which we dont want to run in parallel. Is there any way I can achieve it?

Aucun commentaire:

Enregistrer un commentaire