SonarQube .NET Unit Test Count Not Showing up

  • 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,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

xxx → 8.9.10 → 9.9.1 → 10.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, SonarQube does not count your tests for you. You’ll need to create a test execution report and feed it into analysis.

 
HTH,
Ann