Search code examples
unit-testingsonarqubeautomated-testsintegration-testingcode-coverage

Is it possible to merge test coverage on sonarqube level?


For Java I know the possibility to merge test coverage results on build level by specifying the same path of JaCoCo reports (see SonarQube: Multiple unit test and code coverage result files). This might be transported to SonarQube.

But is it possible to make this on SonarQube level?

I mean from different build servers or different jobs build and test software and combine coverage results at SonarQube side (perhaps by marking the SW version or any kind of given label)?

For me it would be usefull to combine integration and unit tests.


Solution

  • Currently it is not possible to "amend" coverage to an existing analysis. You have to orchestrate your build pipeline so that all kind of coverage reports are produced before you actually starts the SonarQube analysis.