Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting for max coverage drop #271

Closed
dazza-codes opened this issue Dec 12, 2017 · 2 comments
Closed

Setting for max coverage drop #271

dazza-codes opened this issue Dec 12, 2017 · 2 comments
Assignees

Comments

@dazza-codes
Copy link

For ruby, SimpleCov has a max coverage drop setting. We want to fail a build only when the total coverage drops by 1%, we don't care about anything less than that [1]. There is no option on the code-climate web UI or elsewhere to set a similar threshold; it fails travis.ci builds when coverage drops by -0.1% but we just don't care about that. We've decided to turn it off to avoid these false build failures.

[1] sul-dlss/sul_pub#541

@ale7714
Copy link
Contributor

ale7714 commented Dec 12, 2017

@darrenleeweber Hi! Thank you for using Code Climate. Under your Repo -> Settings, you can enable or disable sending pass/fail statuses on your total coverage.
Also you can configure the threshold on diff-coverage (lines changed by your PR). You can read more about it on our docs here.

Currently, we don't offer a threshold option for total-coverage. But I suggest disabling total-coverage status and increasing diff-coverage threshold to a percentage you feel comfortable with. This way you can make sure that all new/changed code meets with the coverage standard you expect.

Let me know if there's anything else I can help with

@fpawel
Copy link

fpawel commented Mar 31, 2021

@ale7714 Сan you please guide me on how to reduce the full test coverage threshold in the config file in the repository? I had 33% full coverage in some project, my edits reduced it to 0.2, and I would like to say to codeclimate that this is acceptable

https://stackoverflow.com/questions/66887199/how-to-disable-check-in-codeclimate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants