1.1.3 • Published 11 years ago
mocha-cov-reporter v1.1.3
mocha-cov-reporter
A code coverage reporter for Mocha/Blanket.js.
Getting Started
Installation
npm install mocha-cov-reporter --save-devIntegration
Please add the following fields to your project's package.json file:
{
"config": {
"mocha-cov-reporter": {
"failOnError": true,
"threshold": 100,
"useColors": true
}
}
}Sample Output
Coverage succeeded: 100% >= 100% (SLOC 85)Coverage below threshold: 75% < 100% (SLOC 85)Running Tests
To run the test suite first install the development dependencies:
npm installthen run the tests:
npm test