coverage-percentage
Simple command line utility for turning code coverage reports into a number
Last updated 7 years ago by ashaffer88 .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install coverage-percentage 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.2                                ...           latest (7 years ago)

3 Versions

  • 0.0.2                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |