Hello, I need help to understand how to interpret the coverage result in SonarQube.
I don’t see that the coverage is reflected in the result, which always tells me 0% coverage
Why does it always show that you do not have coverage if the tests show that there is ?
This is the configuration of my pipeline
echo "installing coverlet.console..."
dotnet tool install --global coverlet.console
dotnet --list-sdks
dotnet /sonar-scanner/SonarScanner.MSBuild.dll begin /k:XXXXX /d:sonar.host.url="XXXXX" /d:sonar.login="XXXXXX" /d:sonar.sourceEncoding="UTF-8" /d:sonar.cs.opencover.reportsPaths=**/TestResults/*/coverage.opencover.xml
dotnet restore --configfile NuGet.Config --locked-mode
dotnet build /clp:ErrorsOnly --no-restore --configuration Release
dotnet test --collect:"XPlat Code Coverage" --filter "TestCategory=unit" --no-build --no-restore --configuration Release -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
dotnet /sonar-scanner/SonarScanner.MSBuild.dll end /d:sonar.login="XXXX"
what am I doing wrong ?
Thanks in advance