Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
using
plugins {
jacoco
id("org.sonarqube") version "3.3"
}
-
what are you trying to achieve
trying to get the code coverage of my source code of .kt format files to get scanned for coverage -
what have you tried so far to achieve this
sonarqube {
properties {
property("sonar.host.url", "https://sonarcloud.io")
property("sonar.organization", "xxxxx")
property("sonar.projectKey", "xxxxxxxxx")
property("sonar.projectName", "xxxxxxx")
property("sonar.sourceEncoding", "UTF-8")
property("sonar.core.codeCoveragePlugin", "jacoco")
property("sonar.inclusions", "*.kt")
property("sonar.coverage.jacoco.xmlReportPaths", "xxxxx/jacocoTestReport.xml")
}
}
log debug report
2022-03-08T10:27:20.506-0800 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Reading report 'xxxxxxx/jacocoTestReport.xml'
2022-03-08T10:27:20.586-0800 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=82ms
2022-03-08T10:27:20.587-0800 [INFO] [org.sonarqube.gradle.SonarQubeTask] Sensor CSS Rules [javascript]