PHPUnit
A guide for generating JUnit test reports for PHPUnit tests
1. Generate JUnit
Append --log-junit junit.xml
to your phpunit
test command:
2. Output Location
The JUnit report is written to the location specified by --log-junit
. In the example above, the test results will be written to ./junit.xml
.
Next Step
JUnit files generated with PHPUnit are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated