In Analysis Scope we added test file inclusion (sonar.test.inclusions). We have also added XML coverage report (sonar.javascript.lcov.reportPath). The code and the tests are written in Typescript. In Overall Code tab the coverage of our code looks good except the number of Unit Test is presented as ‘-‘ (screenshot attached). Should we do anything else to get the number of tests displayed correctly?
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.
Why shouldn’t it be possible for sonarqube to count the testnames in the lcov file?
I don’t see why such a basic functionality should need additional converters