Unit tests count is not showing in Sonarqube for Typescript/Javascript projects

We are using Sonarqube version of 8.9.10 and we have different technical stacks in our organization but we are facing issue with Typescript/Javascript projects. We tried Karma, Jest and Jasmine testing frameworks to get coverage and unit test info. We are able to get coverage with different frameworks but unit test count is not showing. We are using Shared libraries and not using sonar.properties files.

Can you please suggest what configuration need to be added for this one?

Hey there.

You’ll have to find a tool that exports unit test reports in SonarQube’s Generic Test Execution Format format. I’m not aware of any ones right now that are actively maintained.

To be honest, all this does is put the count of Unit tests on your dashboard. We don’t think it’s particularly useful and will probably remove it at some point.

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley:

@Colin We are able to generate the unit test report in the format which you suggested only. Still unit test count is not showing…

We upgraded our sonarqube server to 8.9.10 in January only at that time it was the latest LTS. Due to some constraints it is not possible to upgrade sonarqube again.

What do the analysis logs say about the import of the generic report?