SonarQube not showin any test-results

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
    – SonarQube Enterprise Edition 9.9.3 (build 79811).
    – SonarScanner 4.7.0.2746

  • what are you trying to achieve
    – Get sonarqube to show relevant information

I am analyzing c++ code. I am using gtest for test execution, and bullseye coverager for code coverage. The code coverage works fine.

I have been struggeling for while with getting sonarqube to accept test-reports. First of all JUnit is not supported for C++. I am now converting JUnit test results to CppUnit and I am giving them to sonarscanner. Sonarscanner accepts the xml files.

I get a nice percentage on code coverage. But I have no information what-so-ever, on my test results. How do I get sonarqube to present the tests?

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.9.3 → 2025.1.1

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, even in the latest versions the docs are clear:

Note that while measures such as the number of tests are displayed at the project level, no drill-down is available.

 
HTH,
Ann