How to show unit and integration test coverage separately for the same project

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    8.0.2

  • what are you trying to achieve
    I would like to be able to show the jacoco integration and unit test result reports separately for the same project (i.e. separate coverage data for Unit and Integration tests). The ultimate goal would be for SonarQube to show Unit Test coverage, Integration Test coverage, and the combined coverage, all for the same project.

  • what have you tried so far to achieve this
    read the SonarQube docs, searched the community and google for examples.

Hi Brian,

Probably worth checking this post from a couple of years ago. Way back in SonarQube 6.2 we simplified the way coverage is calculated and removed the distinction between unit and integration tests.

Regards,

Cameron.