Skip to content

Instantly share code, notes, and snippets.

@quitschibo
Created June 1, 2014 16:42
Show Gist options
  • Save quitschibo/b30bb1647efa6b9d5fea to your computer and use it in GitHub Desktop.
Save quitschibo/b30bb1647efa6b9d5fea to your computer and use it in GitHub Desktop.
A make command for running mocha tests and report results to coveralls
# run tests and calculate coverage with coveralls
test:
@./node_modules/.bin/mocha
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment