DevOps / Maven Surefire Plugin Interview Questions
How do you configure parallel test execution in Surefire?
Use the <parallel> element together with <threadCount>:
<configuration> <parallel>methods</parallel> <threadCount>4</threadCount> </configuration>
Valid values for parallel include methods, classes, both, and on the JUnit Platform, suites and all. Tests must be thread-safe for this to be reliable.
More Related questions...