I'm running tests with parallel execution using surefire, and that all seems to work fine.
However, there's only one testng-results.xml generated in the target/surefire-reports/ folder which ... only contains the results of the test that ran last.
I found an issue exactly for that reported for an older version of surefire, and it says "won't fix" here:
However, I doubt that I'm the first person on the planet who is trying to run unit tests in parallel with Jenkins and wants the results displayed properly using the TestNG Jenkins plugin, so I'm pretty sure there must be a solution for this, right?
Here's my surefire plugin config:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${basepom.plugin.surefire.version}</version>
<configuration>
<forkCount>2.5C</forkCount>
<reuseForks>false</reuseForks>
</configuration>
</plugin>
Here's the link to the surefire config btw.: