Kotlin Unit Test result not showing on SonarQube 8.5 developer

Hi all,
we are actually evaluating SonarQube 8.5 developer edition.
We are trying to get some valuable info on our android app written in Kotlin, but we are not able to get unit test numbers, only coverage.

We are using gradlewrapper to launch:

  1. test
  2. jacocoTestReport
  3. sonarQube

As I wrote, we can get test coverage, but not test numbers (in our overall dashboard tab the unit test place holder has no value).

Our sonarqube task has the following structure:

sonarqube {
properties {
property “sonar.projectName”, “PPLIB”
property “sonar.projectVersion”, “$project.android.defaultConfig.versionName”
property “sonar.projectKey”, “PPLIB”
property “sonar.host.url”, “http://blabla:9000
property “sonar.tests”, [“src/test/java”]
property “sonar.login”, “xyz”
property “sonar.test.inclusions”, "src/test/"
property “sonar.sourceEncoding”, “UTF-8”
property ‘sonar.profile’, ‘Android Lint’
property “sonar.sources”, “src/main/java”
property “sonar.exclusions”, '
/Test/,’ +
‘*.json,’ +
'
/test/,’ +
'
/.gradle/,’ +
'
/R.class’

    property "sonar.coverage.exclusions", '**/*Fragment*.*,' +
    '**/*Activity*.*,'        
    '**/*Pager*.*,'
    '**/*Adapter*.kt,'
    '**/*Adapter*.java,'
    '**/*Adapter.java,'
    '**/*Adapter.kt,'
    '**/*View*.*,'
    '**/*Helper*.*,'
    '**/*Repository*.*'

    property "sonar.junit.reportPaths", "${project.buildDir}/test-results/testReleaseUnitTest"
    property "sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/jacoco/jacoco.xml"

}

}

Any clues or suggestions?

It’s really important for us to be able to get these values in order to make up our mind on whether to buy or not developer license.

Thanks in advance

Hey there.

Reading Test Execution Reports for Kotlin ( SONARSLANG-353) will be supported in the next release of SonarQube, v8.6 (expected in the early part of this month)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.