mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-01 22:19:18 +02:00
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:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user