karma-threshold-reporter
Fail the build if the coverage falls below a pre configured value
Installation
The easiest way is to keep karma-threshold-reporter
as a devDependency in your package.json
.
You can simple do it by:
npm install karma-threshold-reporter --save-dev
Configuration
// karma.conf.js or karma-e2e.conf.jsmodule { config;};
You can pass list of reporters as a CLI argument too:
karma start --reporters coverage,threshold
For more information on Karma see the homepage.