A JavaScript code coverage tool written in JavaScript.
The Istanbul 2.0 API is now available and is being actively developed in the new istanbuljs organization.
Istanbul - a JavaScript code coverage tool written in JavaScript
Features
- All-JavaScript instrumentation library that tracks statement, branch, and function coverage.
- Module loader hooks to instrument code on the fly
- Command line tools to run node unit tests "with coverage turned on" and no cooperation whatsoever from the test runner
- Multiple report formats: HTML, LCOV, Cobertura, and more.
- Ability to use as middleware when serving JavaScript files that need to be tested on the browser.
- Can be used on the command line as well as a library
- Based on the awesome
esprima
parser and the equally awesomeescodegen
code generator - Well-tested on Node.js (prev, current and next versions) and the browser (instrumentation library only)