karma-coverage-html-index-reporter

1.0.2 • Public • Published

karma-coverage-html-index-reporter

Quick and dirty solution to the problem of separate coverage html report for each browser. It creates index.html and shows reports in iframe allowing to switch between then in one click.

Installation

Install the karma-coverage-html-index-reporter:

$ npm install karma-coverage-html-index-reporter --save-dev

Add coverage-html-index alongside the coverage to the reporters key in your Karma configuration:

module.exports = function (config) {
  config.set({
    // test results reporter to use
    // possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
    reporters: ['progress', 'coverage', 'coverage-html-index']
 
    // ...
  })
}  

Acknowledgements

Small portions of code are taken from karma-coverage.

Contribution guidelines

In lieu of a formal styleguide, take care to maintain the existing coding style.

Dependents (0)

Package Sidebar

Install

npm i karma-coverage-html-index-reporter

Weekly Downloads

57

Version

1.0.2

License

ISC

Last publish

Collaborators

  • princed