Build not failing even though coverage is decreasing

Description

While testing out, I added some code without corresponding tests. The bot-message on the PR says " Merging #6 will decrease coverage by 5.45% ." but the commit status is passed.

Repository

Link to repo: https://github.com/utkbansal/codecovtest
Link to PR: https://github.com/utkbansal/codecovtest/pull/6

Hey @utkbansal – looking the yaml on your project it doesn’t appear that you set a threshold for what failing means :slight_smile: --> so we won’t fail on decreasing yet (some people just want to know the number).

We made Codecov highly customizable to your needs, check out our documentation here on how to set a threshold for your coverage level per PR. https://docs.codecov.io/docs/commit-status