When am running SonarCloud integration with VSTS in Code Coverage section it is showing 0.0%,please help me how to get the report


(#Sidda Reddy) #1


Azure DevOps (VSTS) extension no longer import coverage and unit tests automatically
(Daniel Svensson) #2

if you look at the analyse log, deos it detect and upload the coverage? otherwise this might be related to https://github.com/Microsoft/azure-pipelines-tasks/issues/7975

(Amaury Levé) #3

Hi @Daniel-Svensson,

Have you followed the instructions on this page: https://docs.sonarqube.org/x/CoBh

The logs will tell you if any coverage report was found.


(Daniel Svensson) #4

My comment was about the VSTS (azure devops / pipelines) plugin (https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Extension+for+VSTS-TFS).

The setup steps are a bit different that the link you mention since that tells you how to execute everything from the command (which by the way works fine).

The extension is (was) great since it automatically find and import unit test and coverage files using the “.trx” fil. The issue is that the vstest step has changed so that they save the file somewhere where the plugin does not look (even if you change the trx search path)