0.0.2 • Published 10 years ago

coverage-percentage v0.0.2

Weekly downloads
845
License
ISC
Repository
github
Last release
10 years ago

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
0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago