istanbul-js: A Javascript code coverage tool written in JS

added by JavaScript Kicks
9/26/2014 3:28:23 PM

344 Views

Yet another code coverage tool for Javascript, with the following features: All-javascript instrumentation library that tracks statement, branch, and function coverage and reverse-engineers line coverage with 100% fidelity. 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. HTML and LCOV reporting. Ability to use as middleware when serving JS 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 awesome escodegen code generator. Well-tested on node 0.4.x, 0.6.x, 0.8.x and the browser (instrumentation library only)


0 comments