Quality gate passed, even when the coverage didn't pass the threshold

Template for a good new topic, formatted with Markdown:

Quality gate is set to be 60% for new code

But this one clearly passed with 33% coverage. Don’t know what happened here

Hello Rajesh and welcome on the community forum!

Actually on very small PR when there is less than 20 lines of code the coverage condition and duplication condition on new code are ignored to compute the QG.

And as you can see, this is what happen in your case:

1 Like