You scanner begin should include the code coverage property
dotnet sonarscanner begin /k:“project-key” /d:sonar.cs.vscoveragexml.reportsPaths=\TestResults*.coveragexml
dotnet build my.sln
dotnet test myTest.csproj --collect:“Code Coverage”
powershell script to convert .coverage to coveragexml
dotnet sonarscanner end
Top comments (0)