coverage-percentage

0.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    615
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    615
  • 0.0.1
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i coverage-percentage

Weekly Downloads

615

Version

0.0.2

License

ISC

Last publish

Collaborators

  • ashaffer88