jacoco-android-gradle-plugin icon indicating copy to clipboard operation
jacoco-android-gradle-plugin copied to clipboard

Kotlin-Tests not considered in sonarqube

Open DagobertDokate opened this issue 6 years ago • 1 comments

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?

DagobertDokate avatar Oct 16 '19 08:10 DagobertDokate

This is an issue in SonarQube, kotlin tests are not taken into account yet ! https://jira.sonarsource.com/browse/SONARSLANG-353

afaucogney avatar Nov 04 '19 10:11 afaucogney