Setup Kover

This commit is contained in:
Benoit Marty
2023-02-01 11:29:06 +01:00
parent e9502462ce
commit b1f8c000c8
3 changed files with 27 additions and 2 deletions
+26
View File
@@ -30,6 +30,7 @@ plugins {
alias(libs.plugins.ktlint)
alias(libs.plugins.dependencygraph)
alias(libs.plugins.sonarqube)
alias(libs.plugins.kover)
}
tasks.register<Delete>("clean").configure {
@@ -151,3 +152,28 @@ allprojects {
}
}
}
allprojects {
apply(plugin = "kover")
}
// Run `./gradlew koverMergedHtmlReport` to get report at ./build/reports/kover
// Run `./gradlew koverMergedReport` to also get XML report
koverMerged {
enable()
filters {
classes {
excludes.addAll(
listOf(
/*
"*Fragment",
"*Fragment\$*",
"*Activity",
"*Activity\$*",
*/
)
)
}
}
}