Code Snippet

Just another Code Snippet site

[Maven] Running Junit in parallel with Maven

Running methods in parallel :

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-surefire-plugin</artifactId>
   <version>2.5</version>
   <configuration>
     <parallel>methods</parallel>
   </configuration>
</plugin>

Running classes in parallel :

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>2.5</version>
  <configuration>
    <parallel>classes</parallel>
  </configuration>
</plugin>

Other options :

    <threadCount>4</threadCount>
    <perCoreThreadCount>true</perCoreThreadCount>
    <useUnlimitedThreads>true</useUnlimitedThreads>

, , ,


Comments are currently closed.