In sonar cloud, the overall code coverage is showing as zero percent when we check it from measures. Is it an intermittent issue. Please let us know and what steps we need to take to correct this or find potential issue.
Hey there.
What language(s) are you analyzing? Do you expect to really only have 4 lines of code to cover with tests, or are other measures changing as well?
In earlier branches it was coverage like this.
It sounds like the code that is being analyzed might be changing from run-to-run.
In what environment are you executing the analysis? A CI (like GitHub Actions, Bitbucket Pipelines…)?
we are executing analysis from Azure DevOps CI/CD pipelines.
Okay. I suggest comparing the build/analysis logs (even going so far as performing a diff
) between a run which outputs the expected results, and one that doesn’t (where you get a very low “Lines to Cover”, for example).