Node Coveralls


To learn and experiment with coveralls test coverage service.

Setup Steps

  1. Install deps

    $ npm install mocha coveralls mocha-lcov-reporter --save-dev
  2. Install istanbul

    $ npm install istanbul --save-dev -g
  3. If running from command line, ensure .coveralls.yml is in current directory. It should contain a line with repo_token: REPO_TOKEN


To run on the tests in the test/ directory.

$ istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/ | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage

You can view the raw coverage output in the ./coverage directory.