Playwright
A guide for generating Trunk-compatible test reports for Playwright
1. Generate JUnit
Configure Playwright to generate JUnit:
2. Output Location
You need to disable automatic retries if you previously enabled them. Retries compromise the accurate detection of flaky tests.
Disable Retries
The JUnit file will be written to the outputFile
specified in the configuration. In the example above, the results will be written to junit.xml
.
You can disable retries in Playwright by omitting the --retries
command line option and removing retries in your playwright.config.ts
file.
Next Step
JUnit files generated with Playwright are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated