Sonar reports no coverage in C# .NET, even though I did add Unit Tests

Hi,

Unfortunately, that log snippet isn’t really germane.

What is the version of the Scanner for .NET (MSBuild) that you are using?

And we’ll need the logs:

  • please give us the verbose output of the scanner commands (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the begin step, and please attach the output of the BEGIN and END steps)
  • please give the output of running MSBuild in verbose mode (/v:d)

Also, please tell us:

  • what are the commands you are running to do the analysis?
  • are you running all commands from the same folder?

In addition, please see the following guides:

 
Thx,
Ann