Code coverage with istanbul and testing lmd build with mocha and mocha-phantomjs
Live example Coverage report example
$ npm i
$ npm coverage
npm coverage
will generate 2 folders, both of them you can add to your.gitignore
:lib-cov
- instrumentedlib
scoverage
- coverage report for all tests
test
dir should be writable to write temporarycoverage-*.json
files- each
.lmd.js
file should changeroot
directory to../lib-cov
in coverage mode (process.argv[2] === '--coverage'
)