The Maven Surefire plugin supports this configuration:
<parallel>methods</parallel>
JUnit >= 4.7
:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.20</version>
<configuration>
<parallel>methods</parallel>
<threadCount>10</threadCount>
</configuration>
</plugin>
.
1 :
JVM, JVM
reuseForks=true forkCount > 1 . , parallel=methods forkCount, threadCount .
, , surefire .
FWIW, JVM , , . , , JVM (, ), ? , , , ?