Karma
Karma is a testing framework for JavaScript.
Enabling XML Output
Karma can be configured to produce JUnit XML output by adding the karma-junit-reporter
package to your codebase.
Also add the junit
reporter to your karma config file. ex:
Now run Karma from the command line or inside your CI system as:
Test Suite Naming
The XML output can be customized by adding a junitReporter
section to your Karma config file. You can set the name of the test suite using the suite
attribute. You can customize the output directory and output file name using the outputDir
and outputFile
attributes. Names and classnames can be customized by providing formatter functions. Ex:
Last updated