HowTo: Send opencover report without reusing dotnet test command?

Hello !
I want to use previously created report and send it to SonarQube server. I got two steps :

  1. execute_unit_tests (here I create opencover.xml report and then I pass it to next build step)
  2. execute_build (here I get my previously created artifact which is coverage.opencover.xml file)
    here I start to execute
dotnet sonarscanner begin /k:"Key" /d:sonar.host.url="myUrl" /d:sonar.cs.opencover.reportsPaths:"path to my coverage.opencover.xml file"

after that I make build and then I call

dotnet sonarscanner end

All execution works fine but I can see that on sonar server my report with test coverage from test step is not included… Is there anyway to achive that?

Hey there.

What do the logs say about the import of code coverage?

https://community.sonarsource.com/t/how-to-find-logs-about-importing-code-coverage/73317/3

And, as requested in the template post, what version of SonarQube are you using?