Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin-Tests not considered in sonarqube #74

Open
DagobertDokate opened this issue Oct 16, 2019 · 1 comment
Open

Kotlin-Tests not considered in sonarqube #74

DagobertDokate opened this issue Oct 16, 2019 · 1 comment

Comments

@DagobertDokate
Copy link

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?

@afaucogney
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants