Enforcing Pull Reques code coverage


There’s a way to make sure that coverage doesn’t drop below a certain threshold. There’s also a way to configure a minimum coverage target for the entire repo/project.

None of these features help me make sure that the code inside a PR is covered well enough.


Let’s say I’m committing a bunch of new code. My target is auto and my threshold is 1%. I can probably get away with writing just a single test, that coveres a small amount of my contribution and codecov will let me merge.

I want to make sure that my code has at least 80% coverage.

Hi @boris, if you would like code to be at 80% coverage, you would set target to 80% on the project status. If you mean just for the code in your PR, you would do the same, but for the patch status.