- I am using SonarQube Enterprise Edition Version 8.9.1 (build 44547)
- It is deployed using Docker
- We are trying to display the ITs/UTs covering each Line of code (in case the LOC is covered by a test). We saw this ticket [SONAR-4093] - Jira mentioning the presence of such feature, Is this feature live on sonarQube? and if yes how can we configure it to show the details of the test covering the LOC on the dashboard alongside the blame details/coverage status for each line in overall code tab
- We have tried to deploy latest SonarQube community edition (version 10) using docker and published coverage report also but could not verify if this functionality is live. Each LOC was associated with only coverage status (fully covered/partially covered/not covered) but no details of the test covering those LOC
This was a feature that was only available with Java due to the nature of the reports being generated. This feature is now removed.
If your coverage reports include this data, we suggest referring to them.
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.
Thanks @Colin for the update
came across https://groups.google.com/g/jacoco/c/Qs9P5cyt58s/m/gzsBAP8qBgAJ mentioning JUNIT and TestNG listeners available in sonarQube which can help getting this information, is the support of these listeners also deprecated in sonar?
SonarQube does not consider which code is covered by which tests. Individual coverage tools might still generate this information – if so, Sonar doesn’t do anything with it.