Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Branch: master
Clone or download
Pull request Compare This branch is 100 commits ahead, 3 commits behind gotwarlost:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
misc CHORE - Remove Trailing Spaces Apr 3, 2016
test
.gitignore make output folder in test folder Mar 19, 2015
.jshintignore
.jshintrc Move jshint config into a separate file Sep 16, 2014
.travis.yml Add sudo:false to use container infrastructure Nov 24, 2015
CHANGELOG.md update changelog, contributors Aug 21, 2016
LICENSE initial commit Sep 12, 2012
README.md deprecate Sep 28, 2018
coverage.json.md Add the `l` property to documentation Jul 24, 2015
download-escodegen-browser.sh
generate-pages.sh
ignoring-code-for-coverage.md
index.js swap fileset for glob Aug 19, 2016
package.json
yui-coverage-comparison.md
yuidoc.json Misc docgen changes Jul 7, 2014

README.md

DEPRECATED

This package was created a long time ago before istanbul had direct transpiler support. I suggest looking at https://istanbul.js.org/ for an updated and maintained solution for code coverage.

babel-istanbul - babel + istanbul

Features

  • This package handles coverage for babel generated code by reconciling babel's output and its source map.
  • babel-istanbul is drop-in replacement for istanbul, as it is a fork of istanbul with babel compilation inserted into the instrumentation layer.

Getting started

$ npm install babel-istanbul
  • babel-istanbul is run exactly like istanbul. For specifics on running istanbul, see istanbul's README.