Context:
My project has around a thousand test methods.
I am executing mvn test
with reuseForks=true
that causes JVM processes to be reused across test classes. This works for most of my test classes, however, one class has to be executed in a separate JVM process, multithreaded.
Specifying reuseForks=false
obviously causes multiple process termination and creation operations that take simply too much time.
Question:
Is it possible to execute mvn test
with reuseForks=false
and parallel=method
on a single test class? Leaving all other classes with reuseForks=true
and no parallel execution?