Hi Team,
We upgrade SonarQube 7.9 community to SonarQube 9.9 community .
Previously code coverage was 80%. on SonarQube 7.9.
When we upgrade the SonarQube version 7.9 to 9.9.
We reanalyze the same project on SonarQube 9.9 then it give us the 27% code converge.
Why it give huge difference in code coverage after upgradation.
Hi,
A lot changed between 7.9 and 9.9 including some coverage parameters.
You should check all the upgrade notes as well as reading your analysis log.
The analysis / scanner log is what’s output from the analysis command.
This guide will help you find them.
And BTW, 9.9 is no longer the LTA. 2025.1 LTA was released last week. You should finish your migration journey.
Ann
Hi Ann,
When we analyze the only required folders, we get as expected code coverage up to 72%.
But when we add one more required folder in the next analysis, then it reduces the code coverage up to 52%.
Please suggest why this kind of difference comes in code coverage.
Hi,
This is purely a math question. Does the additional directory have test coverage? To what degree? How large is it?
The coverage formula is in the docs.
HTH,
Ann