1.

How will you run JUnit tests in parallel with a Maven build?

Answer»

It is now possible to RUN tests in parallel without utilizing TestNG in junit 4.7. It's been feasible since 4.6, but 4.7 will include a number of improvements that will MAKE it a realistic alternative. You may also use spring to execute parallel tests.

You can also use this MAVEN plugin:

<build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.6.0</version> <configuration> <parallel>classes</parallel> <threadCount>4</threadCount> </configuration> </plugin> </plugins></build>


Discussion

No Comment Found