We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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?
The text was updated successfully, but these errors were encountered:
This is an issue in SonarQube, kotlin tests are not taken into account yet ! https://jira.sonarsource.com/browse/SONARSLANG-353
Sorry, something went wrong.
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: