Add Kotlinx Kover test coverage calculator (#199)
* Add Kotlin Kover * Add AuthKtorConfiguration tests * Ensure at least 25% code coverage * Exclude Previews from code coverage * Specify Kover report path for SonarQube * Add Kover xml report task * Extract sonar to a separate step * Add some exclusions and minimum coverage * Exclude Hilt-generated classes * Add shopping list view model tests * Reduce the coverage requirement
This commit is contained in:
@@ -16,6 +16,7 @@ buildscript {
|
||||
plugins {
|
||||
alias(libs.plugins.sonarqube)
|
||||
alias(libs.plugins.ksp) apply false
|
||||
alias(libs.plugins.kover) apply false
|
||||
}
|
||||
|
||||
sonarqube {
|
||||
@@ -23,6 +24,10 @@ sonarqube {
|
||||
property("sonar.projectKey", "kirmanak_Mealient")
|
||||
property("sonar.organization", "kirmanak")
|
||||
property("sonar.host.url", "https://sonarcloud.io")
|
||||
property(
|
||||
"sonar.coverage.jacoco.xmlReportPaths",
|
||||
"${projectDir.path}/app/build/reports/kover/reportRelease.xml"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +38,7 @@ subprojects {
|
||||
"sonar.androidLint.reportPaths",
|
||||
"${projectDir.path}/build/reports/lint-results-debug.xml"
|
||||
)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user