Skip to content

Commit

Permalink
Update Kover to 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed Nov 22, 2021
1 parent 4597602 commit 6b325e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -18,7 +18,7 @@ native.deploy=
validator_version=0.7.1
knit_version=0.2.2
coroutines_version=1.3.9
kover_version=0.3.0
kover_version=0.4.2

kover.enabled=true

Expand Down
16 changes: 9 additions & 7 deletions gradle/kover.gradle
Expand Up @@ -5,15 +5,17 @@
apply plugin: 'kover'

tasks.withType(Test) { task ->
// Core is mainly uncovered because a lot of serializers are tested with JSON
def minPercentage = (project.name.contains("core") || project.name.contains("properties")) ? 50 : 80
kover {
enabled = rootProject.ext.koverEnabled
generateXml = false
generateHtml = true
htmlReportDir.set(file("${rootProject.buildDir}/kover/${project.name}/html"))
verificationRule {
name = "Minimal line coverage rate in percents"

}
}
tasks.koverVerify {
// Core is mainly uncovered because a lot of serializers are tested with JSON
def minPercentage = (project.name.contains("core") || project.name.contains("properties")) ? 50 : 80
rule {
name = "Minimal line coverage rate in percents"
bound {
minValue = minPercentage
// valueType is 'COVERED_LINES_PERCENTAGE' by default
}
Expand Down

0 comments on commit 6b325e4

Please sign in to comment.