Code coverage % decreaed after enabling qualitygates

Hi Team,
Is sonar code coverage % depends on sonarquality gate ?Actually our issue is for one of our component before enabling sonar quality gate ,the code coverage % was around 67% but after enabling sonar quality gate flag, the code coverage % is reduced to 57.6%.also please note that we have not introduced any new code, we have just enabled sonar quality gate flag.

Thanks,
Revanth

HI Team,

Do we have any update on this?
Thanks,
Revanth

Hi Team,

can you please treat this as priority?

Thanks,
Revanth

Hello @revant ,

Enabling the quality gate does not change the code coverage of a project. Is your project public so that we could take a quick look?

Hi @Martin_Bednorz ,
Our project is private one and one ore observation is code coverage % is decreasing when we are changing version in gradle.properties…Is there any dependency on that?

+version=4.13.0
-version=4.12.0

Thanks,
Revanth

SonarCloud itself is not calculating the code coverage, this is being provided to us by third-party tools within your CI (e.g. the Jacoco plugin within Gradle). You can find more information on code coverage here.