Skip to content
New issue

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

Kover 0.8.3. #550

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 12 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,18 @@ allprojects {
}
}

koverReport {
defaults {
filters {
excludes {
classes("*Test*")
packages(listOf(
"*.benchmarks",
"*_generated"
))
}
}
verify {
rule("Minimal coverage") {
bound {
minValue = 96
aggregation = AggregationType.COVERED_PERCENTAGE
}
}
kover.reports {
filters.excludes {
classes("*Test*")
packages(listOf(
"*.benchmarks",
"*_generated"
))
}
verify.rule("Minimal coverage") {
bound {
minValue = 96
aggregationForGroup = AggregationType.COVERED_PERCENTAGE
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cash-licensee = { id = "app.cash.licensee", version = "1.6.0" }
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.22.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
ideaExt = { id = "org.jetbrains.gradle.plugin.idea-ext", version = "1.1.7" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.6" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.3" }
ksp = { id = "com.google.devtools.ksp", version = "2.0.20-1.0.24" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "11.5.0" }
nexus = { id = "io.github.gradle-nexus.publish-plugin", version = "1.3.0" }
Expand Down
17 changes: 6 additions & 11 deletions selekt-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,12 @@ dependencies {
testRuntimeOnly(libs.robolectric.android.all)
}

koverReport {
defaults {
mergeWith("debug")
}
androidReports("debug") {
filters {
excludes {
classes(
"*.BuildConfig"
)
}
kover.reports {
variant("debug") {
filters.excludes {
classes(
"*.BuildConfig"
)
}
}
}
Expand Down
Loading