Skip to content

Commit

Permalink
build(ci): Update kover.
Browse files Browse the repository at this point in the history
  • Loading branch information
driessamyn committed Nov 11, 2024
1 parent 72dfb06 commit 324183c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ test-dbs = ["mysql-driver", "postgresql-driver"]

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.3" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.9.0-RC" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version = "12.1.1" }
29 changes: 7 additions & 22 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,15 @@ val integrationTestImplementation by configurations.getting {
extendsFrom(configurations.implementation.get())
}

koverReport {
defaults {
xml {
onCheck = true
}
html {
onCheck = true
}
}
filters {
excludes {
// Add any exclusions if needed
// classes("com.example.excluded.*")
kover {
reports {
verify {
// add new verification rule
rule {
// specify coverage bounds for the rule
}
}
}
// verify {
// rule {
// isEnabled = true
// bound {
// minValue = 80 // Set your desired coverage threshold
// valueType = kotlinx.kover.api.VerificationValueType.COVERED_LINES_PERCENTAGE
// }
// }
// }
}

tasks.register("koverFullReport") {
Expand Down

0 comments on commit 324183c

Please sign in to comment.