Maven
A guide for generating JUnit test reports for Maven tests
1. Generate JUnit
Configure the maven-surefire-plugin
plugin in your pom.xml
file:
2. Output Location
The JUnit report will be in the target/surefire-reports
directory.
Disable Retries
You need to disable automatic retries if you previously enabled them. Retries compromise the accurate detection of flaky tests.
If you're using the Surefire Plugin to retry tests, you can disable it by omitting the -Dsurefire.rerunFailingTestsCount
option.
Next Step
JUnit files generated with Maven are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated