Code Coverage 0% (.Net 6 C#, xUnit, GitHub-Actions on SonarCloud)

Hey there.

Two points:

  1. I’m not sure your tests actually ran, based on this message in the logs:

The test source file “D:\a\PowerXtensions.DotNet\PowerXtensions.DotNet\Src\PowerXtensions.DotNet.Tests\bin\Debug\net6.0\PowerXtensions.DotNet.Tests.dll” provided was not found.

  1. sonar.cs.xunit.reportsPaths is used for Test Exeuction data, not coverage data. I would suggest reading the documentation on .NET Test Coverage and the supported formats (vscoveragexml, dotcover, and opencover)