In the Azure DevOps pipeline in the Test task argument, I gave the below arguments
–configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --logger trx
Calculating coverage result…
Generating report ‘D:\a\1\s\Bell.Admin.Tests\coverage.opencover.xml’
In Prepare analysis on the SonarCloud task in additional properties, I gave the below properties
extraProperties: |
sonar.exclusions=/obj/,/*.dll
sonar.branch.name=(Build.SourceBranchName)
sonar.cs.opencover.reportsPaths=(Build.SourcesDirectory)//coverage.opencover.xml
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/*.trx
In the sonar cloud.io dashboard, I am not able to see the code coverage %. It always showing me 0 %.
Please help me with the above query.