code-coveragekarma-runnerjscoverage

Karma coverage thresholds


I am currently using Karma's coverage within a project, I would like to enforce a threshold for the coverage to be set at and therefore make my builds on Circle CI to fail and go red due to it being lower than a set percentage.


Solution

  • You can install karma-threshold-reporter and configure it as shown in the README.