Skip to content

martinmcwhorter/karma-nunit2-reporter

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 17 commits ahead, 117 commits behind karma-runner:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

This project has been abondoned by me. If you would like to take over this project open an issue and I will transfer this and the NPM to you.

If you have a replacement that supersedes this project, open and issue and I will link to it.

karma-nunit2-reporter

Reporter for the NUnit XML format. A direct port from karma-junit-reporter. The name nunit2 does not reflect the version of nunit. karma-nunit-reporter is another project.

Installation

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

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-nunit2-reporter": "~0.1"
  }
}

You can simple do it by:

npm install karma-nunit2-reporter --save-dev

Configuration

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

    // the default configuration
    nunitReporter: {
      outputFile: 'test-results.xml',
      suite: ''
    }
  });
};

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

karma start --reporters nunit,dots

For more information on Karma see the homepage.

About

A Karma plugin. Report results in junit xml format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.6%
  • CoffeeScript 11.4%