A Karma plugin. Report results in junit xml format.

npm install karma-junit-reporter
1 579 downloads in the last day
12 114 downloads in the last week
57 149 downloads in the last month


Reporter for the JUnit XML format.


The easiest way is to keep karma-junit-reporter as a devDependency in your package.json.

  "devDependencies": {
    "karma": "~0.10",
    "karma-junit-reporter": "~0.1"

You can simple do it by:

npm install karma-junit-reporter --save-dev


// karma.conf.js
module.exports = function(config) {
    reporters: ['progress', 'junit'],

    // the default configuration
    junitReporter: {
      outputFile: 'test-results.xml',
      suite: ''

You can pass list of reporters as a CLI argument too:

karma start --reporters junit,dots

For more information on Karma see the homepage.

npm loves you