coverage-percentage

Simple command line utility for turning code coverage reports into a number

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
coverage-percentage
0.0.210 years ago10 years agoMinified + gzip package size for coverage-percentage in KB

Readme

coverage-percentage
Build Status Coverage Status
Tiny utility for turning a coverage report in various formats into a numerical percentage. Built for use with https://www.github.com/ppvg/node-coverage-badge.

Example

"scripts": {
  "test": "istanbul test _mocha --report lcov -- -R spec",
  "badge": "coverage-badge `coverage-percentage ./coverage/lcov.info --lcov` badge.png"
}

Then simply:
npm test --coverage
npm run-script badge