learnings, nerdisms, bicycles
coveralls.io is great. however, the default instruction sets are tailored to ruby and travis. i use neither.
for many of us, we want coveralls to work with codeship.io and nodejs.
the coveralls docs re-direct you to: https://github.com/nickmerwin/node-coveralls, which helps us get the job done. however, you may like just a simple clear step-by-step.
Here are the steps, short and sweet:
npm i --save-dev coveralls
into your npm project// package.json
{
"name": "MY-MODULE",
"description": "A SUPER GREAT MODULE",
...
"scripts": {
"test": "nyc --reporter=lcov --check-coverage --functions=90 --branches=90 node test/"
}
}
visit your project on codeship
npm test # or your test command
cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
COVERALLS_SERVICE_NAME=codeship
COVERALLS_REPO_TOKEN=YOUR_SECRET_COVERALLS_TOKEN
You're all done!