Opencover pipeline config & no coverage result

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

Hey there.

It looks like you’re looking at the New Code panel of your dashboard – what do you see if you look at Overall Code?

Hi Colin,

when passing the pipeline, shows the following line
INFO: ANALYSIS SUCCESSFUL, you can browse https://XXXXX/dashboard?id=XXXX&pullRequest=XXX

if I access that URL, it shows what you see in the previous image, this is the result in my feature branch, but if we go to the Master branch, there are two tabs “New Code” and “Overal Code”, but of course, the merge to Master has not yet been done.
My question is, in the feature branch shouldn’t it show the reality? that is, show the test coverage that I have in all my code of the branch ?

The email I receive with the result of the pipeline shows the following