How run unit tests in parallel with testng
October 6, 2013 by euler · Comments Off on How run unit tests in parallel with testng
Filed under: Uncategorized
Filed under: Uncategorized
1.To run unit test by classes parallel
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <parallel>classes</parallel> <threadCount>4</threadCount> </configuration> </plugin>
2.To run unit test by methods in parallel
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <parallel>methods</parallel> <threadCount>4</threadCount> </configuration> </plugin>
Reference: