Cannot get a quality gate to fail on code coverage

Using the following stack:

I can’t seem to get quality gates to fail based on poor code coverage. I’ve set all the thresholds I can find at 80% and I’ve dropped the actual coverage down to 20% but it still passes. See screenshots


1 Like

Hi,

You’re running into what I call the “fudge factor”. Conditions on Coverage* on New Code and Duplications on New Code aren’t applied when there are fewer than 20 lines of new code.

Add / edit more LOCs and you should see the Quality Gate fail.

 
HTH,
Ann