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: GitHub - utkbansal/codecovtest
Link to PR: Add code w/o tests by utkbansal · Pull Request #6 · utkbansal/codecovtest · GitHub

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. Status Checks