I use this all the time. This is the command I use for coverage with mocha:
./node_modules/istanbul/lib/cli.js cover -- ./node_modules/mocha/bin/_mocha -R spec
Always in my Makefile as make test-cov
./node_modules/istanbul/lib/cli.js cover -- ./node_modules/mocha/bin/_mocha -R spec
Always in my Makefile as make test-cov
No comments yet.