Dotnet sonarscanner send dotcover html report but no report is displayed on the web interface

Hello,

I have setup dotnet sonarscanner for my opensource project, in the build log it says that it picked up the report:

INFO: Adding this code coverage report to the cache for later reuse: /home/runner/work/UMVC/UMVC/UMVC.Core/./dotCover.Output.html
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=3ms

You can see the log at: UMVC.Core SonarCloud Analysis

The tutorial what I have followed: Using dotcover and SonarCloud

  • ALM used : GitHub
  • CI system used : GitHub Actions
  • Scanner command used when applicable
dotnet sonarscanner begin /k:"UMVC.Editor" \
  /o:"loic-lopez" \
  /n:"UMVC.Editor" \
  /v:"${{ steps.gitversion.outputs.semVer }}" \
  /d:sonar.login="${{ secrets.SONAR_TOKEN_EDITOR }}" \
  /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html \
  /d:sonar.scm.provider=git \
  /d:sonar.projectDescription="UMVC - Model-View-Controller Generator built for Unity" \
  /d:sonar.host.url=https://sonarcloud.io

Hello

We have a guide for trouble shooting code coverage import - did you read it?

Hi @Andrei_Epure I have read the trouble shooting guide but is not working the file dotCover.Output.html seems to be uploaded but no coverage is displayed on SonarCloud

I have also tried to use dotnet-coverage instead of DotCover from jetbrains but it has no effect

Hi @loic-lopez,

Thanks for your feedback!

Unfortunately the build logs are no longer present. Would it be possible to do another run with verbose logging enabled (/d:“sonar.verbose=true”) and send us the logs? Additionally, could you please share with us the generated coverage file?

Best,
Costin

Hi @costin.zaharia, thanks for your reply,

See the pipeline log here : Update unity to 2021.3.16f1 & fix coverage · loic-lopez/UMVC@980ecc7 · GitHub

There is something strange in the logs :

More about the report processing at https://sonarcloud.io/api/ce/task?id=AYX0nGmxJjozFjgcJLC3

if you click on this link it says {"errors":[{"msg":"Project doesn\u0027t exist"}]} but UMVC.Core project exists in SonarCloud : https://sonarcloud.io/dashboard?id=UMVC.Core&pullRequest=61