Istanbul code coverage loader for Webpack
This is a Webpack loader that uses Istanbul to add code coverage instrumentation to your code. This is especially useful for in-browser testing, in a tool like Karma, where you can use karma-coverage-istanbul-reporter to output code coverage data in a variety of formats that are supported by services like Coveralls or Codacy.
See the examples folder for usage examples for various use cases.
"hello, world" example
This is the most simplistic example. It just uses coverage-istanbul-loader with its default options to produce an output bundle that contains code coverage instrumentation.
To build/test the project locally on your computer:
Clone this repo
git clone https://github.com/JS-DevTools/coverage-istanbul-loader.git
Build the code
npm run build
Run the tests
coverage-istanbul-loader is 100% free and open-source, under the MIT license. Use it however you want.
Big Thanks To
Thanks to these awesome companies for their support of Open Source developers ❤