C# unit test files not being displayed

unit-testing-using-dotnet-test.zip (2.2 MB)
Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Sonarqube: 9.5.0.56709 community edition running on locally on windows
Scanner: SonarScanner for MSBuild 5.7.1
Collector:

I am trying to upload the code coverage, unit test case count and unit test case files to the server
unit-testing-using-dotnet-test.zip (2.2 MB)

I see code coverage and unit test case count but i don’t see the unit test case files uploaded to the server. In short, when I click on the Unit test case count in “Overview” tab, page navigates to “Measures” tab but under “Coverage → Tests → Unit Tests” section i only see the count but not the **Tests.cs files which contain those tests.
unit-testing-using-dotnet-test (src,logs,screenshot).zip (2.3 MB)

I am new to Sonar and DotNet. Attached the source code, commands i used, logs generated from those commands and screenshot of the problem → Unit test count is visible but the Test files which contain those test cases are not visible. I see a “No Result” message where i would expect to see PrimeServiceTests.cs file

1 Like

Hey there.

Take a look at this post here.

1 Like

Thank you. I have been struggling with this for some time now