New SonarQube UI does not have "Unit Tests" on overall code display

Hello,

recently I have updated SonarQube version from 9.* to 10.*, and UI changes are amazing, however they are missing Unit Tests field.

Here is the field in old version:

And in the new version is not visible:

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    So now currently we are using SonarQube 10.6 community
  • how is SonarQube deployed: zip, Docker, Helm
    Docker
  • what are you trying to achieve
    I wan to see Unit Test on overall code report screen

To add more information - all unit test information is passed to SonarQube, because I am able to see that information in Measures tab under Coverage dropdown, but strangely it is missing from Overview’s Overall tab.

My question is it even possible to see that field anymore? Is it disabled by some configuration or is it just an UI bug, or maybe this is a new design decision and unit test field will not be available anymore?

1 Like

Hi @arvapu,
ou are lucky to be using 10.6, I have not yet switched. However on sonarcloud, I could see that the number of unit tests is present in some open source projects in the " * Measures " section tab but not in the overview.

Hey all :wave:

Like @Bachri_Abdel said, the Measures tab still contains the count of Unit Tests, but it’s no longer on the home page.

We would, overall, like to stop tracking Unit test results in SonarQube.

We are considering deprecating and then later removing the test execution results from SonarQube. The reasoning behind this change is that the successful execution of your tests is not a good measure of how clean your code is.

Hi Colin, sorry to say that this is not a good move. This was very useful on the home page with other metrics, please do not remove it

2 Likes

I’m using SonarQube 10.5 and on my Measures tab under Coverage there is no Tests section. Do you know what would cause this? My coverage shows up just fine. I use this parameter when I run my scanner /d:sonar.cs.nunit.reportPaths="${unitTestResultsPath}". Any help would be appreciated.

The correct parameter is sonar.cs.nunit.reportsPaths

2 Likes