SonarQube Test Unit Count

  • I am using SonarScanner for MSBuild 5.13 and SonarQube Version 8.9.8
  • Github Actions
  • I am trying to use SonarQube to report the test coverage and number of unit tests. Currently, I get an accurate coverage percentage but the unit test count is shown as “-”.
  • I am using the dotnet-coverage plugin in order to achieve this as shown .NET test coverage

Does any one have any recommendations for solving this?

Hi Mark

You may also need to import test results and set sonar.cs.vstest.reportsPaths to show this count. If you haven’t done that already here’s the instructions.

Please let me know how you get on.

Thanks

Tom