Cypress
A guide for generating Trunk-compatible test reports for Cypress tests
1. Generate JUnit
Update your Cypress config to output JUnit reports:
cypress.config.js
2. Output Location
The JUnit report location is specified by the mochaFile
property in your Cypress config. In the above example, the file will be at results/junit.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 retries by setting retries: 0
in your Cypress config file.
Next Step
JUnit files generated with Cypress are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated