Karma
A guide for generating JUnit test reports for Karma tests
1. Generate JUnit
Install the karma-junit-reporter
package:
Add the junit
reporter to your karma config file:
2. Output Location
The outputDir
and outputFile
specify the location of the JUnit test report. In the example above, the JUnit would be at ./test_results/$browserName/report.xml
.
Next Step
JUnit files generated with Karma are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.
Last updated