Sonar/Jacoco : Per Test coverage - need help

Must-share information (formatted with Markdown):

  • which versions are you using
    sonarqube- server to display Jacoco pertest coverage

  • what are you trying to achieve
    Need to enable per test coverage for unit tests through jacoco for my junit tests

  • what have you tried so far to achieve this
    I have created a Springboot project with some unit test to measure the per test coverage. I can see on the test coverage, but I can not get the jacoco per test coverage which actually give the link between the application code lines and the unit tests.

pom set up:

<sonar.coverage.jacoco.xmlReportPaths>{}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> <sonar.jacoco.reportsPaths>{}/target/jacoco.exec</sonar.jacoco.reportsPaths>

coverage-per-test org.apache.maven.plugins maven-surefire-plugin 2.22.2 **/* **/* listener

This the expected out come I need to have :
What I need to have is the link inbetween :slight_smile:

But now I see just the test coverage:

Hey @Malindu,

Unfortunately for you, this feature has been dropped from SonarQube a long time ago. I’m not sure if this change was even already part of SQ LTS 6.7 (November 2017), but I can tell you that the current SQ LTS 7.9 (July 2019) is clearly and officially not supporting this anymore.

So, to answer this question, this is not possible anymore to have such links when looking at coverage results. There is simply not such option anymore.

I hope this clarifies the situation for you,


Thanks for the confirmation regarding this.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.