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

Set realistic code coverage target. #185

Closed
wants to merge 1 commit into from

Conversation

richardbarran
Copy link
Contributor

The CI runs a check on code coverage. At present we are nowhere near the target and all recent PRs have failed this check.
I suggest reducing the % so that current PRs pass. This way we still check that PRs do not reduce coverage.
In future if someone wants to put a lot of TLC into this project, we can increase the values :-)

@@ -3,7 +3,7 @@ coverage:
status:
patch:
default:
target: 95
target: 75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too less

project:
default:
target: 83
target: 75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be less then 80 IMHO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that it should be as high as possible. Ideally.
The situation at present - in the last ticket we had coverage at 76.31%. If we set it higher (e.g. 80%) then all PRs will automatically fail (except those specifically targeted at increasing coverage).
My concern is that people will get into a habit of ignoring the code coverage test - "it always fails, just ignore it".
It could be described as a "Normalization of deviance" situation, and the long term effect would be that drops in coverage would be missed.
Re. your suggestion to set the figure at 80 - I don't think it will make any change to the current situation, and it negates the goal of this PR.

@vchrisb vchrisb mentioned this pull request May 10, 2022
@vchrisb
Copy link
Contributor

vchrisb commented May 10, 2022

@clintonb this can be closed IMHO, with test coverage now being at 95%.

@clintonb clintonb closed this May 10, 2022
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

Successfully merging this pull request may close these issues.

4 participants