Code Coverage is decreased and quality gate failed after merge to master

Hi team,

We are using sonarqube version 9.9 . Our code coverage was more than 80% is feature branch. But when we merged it to master it has reduced and quality gate is failing.
When the code is same in master and feature, why there is difference in code coverage ?

The new lines introduced in master branch are also new lines for feature branch, then why there is difference?

I can see similar issue is raised by other users also, but cannot see any response on it.

Kindly suggest.

Regards,
Sahana M K

Hey there.

Can you share a screenshot of both the PR analysis and main branch analysis (the project dashboard, on SonarCloud) showing the Coverage %, # of New Lines to Cover, and the Quality Gate?