Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/princed/karma-coverage-html-index
Quick and dirty solution to the problem of separate coverage html report for each browser
https://github.com/princed/karma-coverage-html-index
coverage karma karma-coverage karma-reporter
Last synced: about 2 months ago
JSON representation
Quick and dirty solution to the problem of separate coverage html report for each browser
- Host: GitHub
- URL: https://github.com/princed/karma-coverage-html-index
- Owner: princed
- Created: 2016-02-25T11:16:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T12:42:47.000Z (almost 9 years ago)
- Last Synced: 2024-10-13T13:11:12.325Z (3 months ago)
- Topics: coverage, karma, karma-coverage, karma-reporter
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[karma](https://github.com/karma-runner/karma)-[coverage](https://github.com/karma-runner/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`:
```sh
$ npm install karma-coverage-html-index-reporter --save-dev
```Add `coverage-html-index` alongside the `coverage` to the `reporters` key in your Karma configuration:
```js
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](https://github.com/karma-runner/karma-coverage).
Contribution guidelines
-----------------------In lieu of a formal styleguide, take care to maintain the existing coding style.