1. @jsdevtools/coverage-istanbul-loader
A Webpack loader that uses Istanbul to add code coverage instrumentation
@jsdevtools/coverage-istanbul-loader
Package: @jsdevtools/coverage-istanbul-loader
Created by: JS-DevTools
Last modified: Fri, 07 Apr 2023 20:12:23 GMT
Version: 3.0.5
License: MIT
Downloads: 1,784,111
Repository: https://github.com/JS-DevTools/coverage-istanbul-loader

Install

npm install @jsdevtools/coverage-istanbul-loader
yarn add @jsdevtools/coverage-istanbul-loader

Istanbul code coverage loader for Webpack

Cross-Platform Compatibility
Build Status

Coverage Status
Dependencies

npm
License
Buy us a tree

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.

Coverage Istanbul Loader is based on Istanbul Instrumenter Loader, but uses a newer version of the Istanbul API and has better support for source maps.

Usage

See the examples folder for usage examples for various use cases.

Contributing

Contributions, enhancements, and bug-fixes are welcome! Open an issue on GitHub and submit a pull request.

Building/Testing

To build/test the project locally on your computer:

  1. Clone this repo

    git clone https://github.com/JS-DevTools/coverage-istanbul-loader.git

  2. Install dependencies

    npm install

  3. Build the code

    npm run build

  4. Run the tests

    npm test

License

coverage-istanbul-loader is 100% free and open-source, under the MIT license. Use it however you want.

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

Big Thanks To

Thanks to these awesome companies for their support of Open Source developers ❤

Travis CI
SauceLabs
Coveralls

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code