Karma coverage thresholds
Asked Answered
O

1

7

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.

Osteomalacia answered 9/7, 2014 at 9:54 Comment(2)
You should really accept the answer you've got at the moment. Thanks. – Eiten
yeah apologise I hadn't seen the answer – Osteomalacia
F
7

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

Furgeson answered 4/8, 2014 at 13:25 Comment(2)
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.