Hi,
We have been using SonarQube for a long time.
There is a problem with calculation of coverage .
I trigged a build request for a project from jenkins the day before, it couldn’t pass the gate because of quality gate criteria.
Today i have again trigged a request for the same project, the project could passed the gate
although it doesn’t provide the criterias.
Hello. From what I understand, you mention two problems:
Code coverage does not get uploaded to SQ anymore
SQ , even if it does not receive code coverage, it passes the quality gate
For the first problem, can you please
tell us what changed in the way you run your CI - when did the code coverage stopped being produced?
what are the commands of the CI script to run the build & analysis?
can you share the verbose logs of the begin step, build step and end step with us? (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the begin step, and please attach the output of END step)
In order to have the coverage report imported correctly the generation should be done between the build step and the scanner end. In the attached snippet this seems to be done at another moment.