Steps to reproduce
Link SonarCloud to gitlab project. Update lcov configuration. lcov.info file is updated when rebuilding but the sonarcloud project coverage is not updated
Potential workaround
I tried to reset the configuration by going through the wizard on sonarcloud but the history is kept and no change is reflected
the coverage info is both generated as text and lcov file and I see the change. I also downloaded the lcov.info file from gitlab as an artifact and I see the change too (no more ‘test’ string appearing in the file)
What kind of update did you expect exactly?
I expected the coverage report to be updated. When I go in the details, I see that the test files are still there. They should not. As a result the coverage percentage displayed ni gitlab and in sonarQube are different, which is a problem.
Right after importing the project on SonarCloud, the coverage looks correct: what you see on SonarCloud is consistent with what’s in the lcov.info file.
After you make a change to your setup, the lcov.info file is correctly updated, what you see on SonarCloud is not updated.
Correct me if I missed something. If the above is correct, then it looks to me as if the SonarCloud analysis was not executed after you made the change to your setup. The project’s page on SonarCloud shows the time of the last analysis. You can also see the list of analyses on the Administration / Background Tasks page.
I suspect the issue is with your build pipeline: it looks like the SonarCloud analysis is not executed on code change. I hope this helps.