jacoco-android-gradle-plugin
jacoco-android-gradle-plugin copied to clipboard
Kotlin-Tests not considered in sonarqube
When i do jacoco coverage with this plugin, tests written in kotline will not recognize as unittest in sonarqube. Here is my gradle configuration
`apply plugin: 'jacoco-android'
jacoco { toolVersion = "0.8.3" }
tasks.withType(Test) { jacoco.includeNoLocationClasses = true }
jacocoAndroidUnitTestReport { csv.enabled false html.enabled true xml.enabled true }
sonarqube { properties { property "sonar.projectKey", "" property "sonar.host.url", "" property "sonar.login", "***" property "sonar.projectBaseDir", "./" property "sonar.sources", "app/src/main/java" property "sonar.java.source", "app/src/main/java" property "sonar.junit.reportsPath" ,"app/build/test-results/testDebugUnitTest" property "sonar.jacoco.reportPath", "sonar.jacoco.reportPath=app/build/jacoco/testDebugUnitTest.exec" } }`
Can anyone confirm that?
This is an issue in SonarQube, kotlin tests are not taken into account yet ! https://jira.sonarsource.com/browse/SONARSLANG-353