Has anyone configured SonarQube to work with Kover...
# getting-started
l
Has anyone configured SonarQube to work with Kover? Is there any special configuration required?
r
Just try feeding the Kover Report to Sonarqube using this property:
sonar.coverage.jacoco.xmlReportPaths
Note that you will have to provide exclusions separately
2
Kover has such a nice feature to exclude Annotations (Fx Compose @Preview) , I wonder If someone managed to do something similar with Sonarqube? 👀
l
Thank you, I will try it out!
b
I’m curious: why Kover and not Jacoco?
l
Because Jacoco stopped generating jacoco.xml reports with the upgrade to Gradle 8.1 and Android Gradle Plugin 8
thank you color 1
h
Hmm Jacoco is not working with gradle 8.1?
s
Also I remember you can configure kover to output in jacoco format, if make it easier to integrate
h
And SonarQube works with kover as well?
l
SonarQube should work with Kover, looks like it can just read the Kover output XML file
1
👍 1
1683 Views