karma-nunit2-reporter

0.3.0 • Public • Published

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.

/karma-nunit2-reporter/

    Package Sidebar

    Install

    npm i karma-nunit2-reporter

    Weekly Downloads

    72

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • martinmcwhorter