Skip to content

vshjxyz/karma-html-reporter

 
 

Repository files navigation

karma-html-reporter

Reporter that formats results in HTML similar to jasmine.

What's in this fork?

I've just unified the output folder and I've added a little modification to make the plugin work with Karma 0.11.x

Installation

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

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

You can simple do it by:

npm install karma-html-reporter --save-dev

Configuration

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

    // the default configuration
    htmlReporter: {
      outputDir: 'karma_html',
      templatePath: __dirname+'/jasmine_template.html'
    }
  });
};

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

karma start --reporters html,dots

For more information on Karma see the homepage.

About

Karma Html Reporter Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.2%
  • CoffeeScript 12.8%