Cucumber
A guide for generating Trunk-compatible test reports for Cucumber tests
1. Generate JUnit
Add --format junit:path/to/junit/output
to your cucumber test command line. For example:
2. Output Location
JUnit files will be written according to the path passed to the --format
option. In the above example, a JUnit file will be written to output/report.xml
.
Disable Retries
You need to disable automatic retries if you previously enabled them. Retries compromise the accurate detection of flaky tests.
You can disable retry by omitting the --retry
CLI option or removing retry from your configuration file.
Next Step
JUnit files generated with Cucumber are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated