A karma plugin to report Karma test results as a subunit stream
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tim Buckley 9d30bc6a28 0.0.4 2 years ago
.eslintignore Initial import 2 years ago
.eslintrc.json Initial import 2 years ago
.gitignore Add README and other administrative bits 2 years ago
.tern-project Initial import 2 years ago
LICENSE Add README and other administrative bits 2 years ago
README.md Add README and other administrative bits 2 years ago
index.js Fix outdated require() 2 years ago
package.json 0.0.4 2 years ago

README.md

karma-subunit-reporter

Writes Karma results to Subunit streams compatible with Subunit consumers like stackviz and subunit2sql.

Installation

npm install --save-dev karma-subunit-reporter

Usage

Trivial usage only requires that you install the plugin and then add it as a reporter in your karma.conf.js:

module.exports = function(config) {
  config.set({
    // ...

    reporters: ['some', 'other', 'reporters', 'subunit'], // <----

    // ...
  });    
};

You can also specify some configuration parameters with the subunitReporter object (defaults are shown below):

module.exports = function(config) {
  config.set({
    reporters: ['subunit'],

    // ...

    subunitReporter: {
      outputFile: 'karma.subunit',
      tags: [],      // tag strings to append to all tests
      slug: false,   // convert whitespace to '_'
      separator: '.' // separator for suite components + test name
    }
  });    
};