Sonar coverage drop with out major code change from 55.2% to 30%

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    => 9.9.4

  • how is SonarQube deployed: zip, Docker, Helm
    => Zip

  • what are you trying to achieve
    => To have the consistent coverage

  • what have you tried so far to achieve this.
    => Verified the code changes from end to end.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

=> among all the good count of services, around 10 services falling under this in-consistent issues. Where the coverage count is being dropped abruptly with out any major code change.

let me know if i need to share any extra information

Hi,

Welcome to the community!

You haven’t provided a lot to go on here. What I can tell you is that analysis works with what you give it, and with regard to coverage, we go entirely by the coverage reports passed in to analysis.

If your coverage numbers dropped abruptly, then you should verify that

  • your coverage reports are still generated as expected.
  • your analysis configuration didn’t change to suddenly include a lot of uncovered code (e.g. 3rd-party libraries).

 
HTH,
Ann