lemurheavy / coveralls-public

The public issue tracker for coveralls.io
http://coveralls.io
124 stars 7 forks source link

Custom thresholds for good/ok/poor coverage in the reports #1537

Open v0vanec opened 3 years ago

v0vanec commented 3 years ago

It looks like coverage levels are hardcoded and there's no way to change them for reports, i.e. coverage <=80% is red, <=90% is yellow and 90+% is green. It would be nice to configure custom thresholds per source directory (or at least per repo) and even exclude some directories from test coverage. e.g. I want to set >=70% as OK coverage (yellow) and 80+% as good coverage (green), how do I do that?

Screen Shot 2021-03-24 at 7 14 16 PM
afinetooth commented 3 years ago

@v0vanec you're correct, currently those levels (and colors) are hard-coded. There’s no way to change them at this time.

But there is a somewhat longstanding feature request for this, for the exact behavior you describe, in our backlog so I have added you as a plus-one.

Thanks.