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.
Karma coverage thresholds
Asked Answered
You should really accept the answer you've got at the moment. Thanks. β
Eiten
yeah apologise I hadn't seen the answer β
Osteomalacia
You can install karma-threshold-reporter
and configure it as shown in the README.
A short eight and a half years later π, the repo and site are kaput. π€ Any other good options? (This might be useful.) β
Noakes
github.com/karma-runner/karma-coverage/blob/master/docs/… was posted three years ago, but deleted because it was only a link -_-. I guess it's a problem of the question, but nevertheless I don't see better ways to ask or answer, and since web search is increasingly broken nowadays (enshittification) β¦ β
Furgeson
© 2022 - 2024 β McMap. All rights reserved.