-
versions used (SonarQube, Scanner, Plugin, and any relevant extension)
sonar gradle plugin 2.6.2
gradle 4.8
sonar server 5.6.6 -
error observed
adding entries to “sonar.jacoco.reportPaths” does not impact the reported code coverage -
steps to reproduce
run 2 test tasks with different coverages, and add them both to “sonar.jacoco.reportPaths” -
potential workaround
run the JacocoMerge and set “sonar.jacoco.reportPaths” = .destinationFile
How to manage jacoco data should also probably be mentioned in the “Analyzing Custom Source Sets” section of the wiki.