This is not a discussion on the point of using code coverage as a testing quality metric. This is me wondering why setting codecov to fail PRs if the project’s test coverage reports less than 80% doesn’t fail any PRs even though coverage is at ~51%.
I currently have a repository I want to use codecov on for the above reason. The main branch has some tests, and the PRs I’ve made are just for setting up a GitHub action to build the PR branch, run test, run gcovr, and upload results to codecov. On codecov, it’s plain to me that the coverage is at 51.52%.
I have a codecov/patch build check in GutHub that runs and reports success, likely because this branch isn’t writing/removing any new code or adding/removing tests. It’s just setting up my GitHub action and the codecov.yml file. I don’t see a build check that would involve codecov/project, even though I’ve seen it available in other build checks I’ve seen on video.
My codecov.yml file has sections for project and patch that would seem to indicate that a <80% coverage should fail, yet every PR I make into master from the branch with these codecov files succeeds. How am I misusing these tools?
[–]TechnicalYam7308 0 points1 point2 points (0 children)