Is it normal SonarCloud Quality Gate gets passed even with failed unit tests?

Hi there,

I am trying SonarCloud here and I am but confused about the Quality Gate.

It shows green “Passed” even though some unit tests have been failed and others had errors.

I try to see if there is any “settings” but I can’t find anywhere to confirm/change the Quality Gate parameters.

Hi @rafael-trevisan

Yes, Quality Gate is not meant to be based on the unit tests results (we assume that you will break a build anyhow before actually doing a SonarCloud analysis on that code). This can be based on the code coverage however.

Please see our doc for more information :

HTH,
Mickaël

Got it.

Great thank

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.