feat(ci): add kover for test coverage reporting (#3041)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich
2025-09-10 10:30:47 -05:00
committed by GitHub
parent 72c5284e2e
commit 0659d38438
9 changed files with 69 additions and 9 deletions
+38
View File
@@ -31,6 +31,44 @@ plugins {
alias(libs.plugins.protobuf) apply false
alias(libs.plugins.secrets) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.kover)
}
kover {
reports {
total {
filters {
excludes {
// Exclude generated classes
classes("*_Impl")
classes("*Binding")
classes("*Factory")
classes("*.BuildConfig")
classes("*.R")
classes("*.R$*")
// Exclude UI components
annotatedBy("*Preview")
// Exclude declarations
annotatedBy(
"*.HiltAndroidApp",
"*.AndroidEntryPoint",
"*.Module",
"*.Provides",
"*.Binds",
"*.Composable",
)
}
}
}
}
}
dependencies {
kover(project(":app"))
kover(project(":network"))
kover(project(":mesh_service_example"))
}
tasks.register<Delete>("clean") {