Skip to content

Commit

Permalink
upgrade: Kover 0.6.0
Browse files Browse the repository at this point in the history
The migration from 0.5.* to 0.6.* is necessary because of Kotlin/kotlinx-kover#210 (triggered by the Spine project).
  • Loading branch information
CLOVIS-AI committed Sep 28, 2022
1 parent ddc739b commit da678fb
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Expand Up @@ -41,8 +41,8 @@ backbone:publish:
after_script:
- mkdir -p test-report-$module
- mv $module/build/reports/tests/jvmTest test-report-$module/test
- mv $module/build/reports/kover/project-html test-report-$module/coverage
- mv $module/build/reports/kover/project-xml/report.xml test-report-$module/coverage.xml
- mv $module/build/reports/kover/html test-report-$module/coverage
- mv $module/build/reports/kover/xml/report.xml test-report-$module/coverage.xml
- values=$(cat test-report-$module/coverage.xml | tail -7 | head -5 | grep 'INSTRUCTION' | cut -d ' ' -f 3,4 | sed 's/missed="//;s/" covered="/ /;s/"\/>//')
- missed=$(<<<$values cut -d ' ' -f 1)
- covered=$(<<<$values cut -d ' ' -f 2)
Expand Down
16 changes: 9 additions & 7 deletions backbone/build.gradle.kts
Expand Up @@ -56,11 +56,13 @@ publishing {
}
}

tasks.koverVerify {
rule {
name = "Minimal code coverage"
bound {
minValue = 80
}
}
kover {
verify {
rule {
name = "Minimal code coverage"
bound {
minValue = 80
}
}
}
}
3 changes: 3 additions & 0 deletions build.gradle.kts
Expand Up @@ -19,8 +19,11 @@ allprojects {
}

plugins.apply("org.jetbrains.dokka")
plugins.apply("org.jetbrains.kotlinx.kover")
}

koverMerged.enable()

fun calculateVersion(): String {
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()
Expand Down
16 changes: 9 additions & 7 deletions logger/build.gradle.kts
Expand Up @@ -51,11 +51,13 @@ publishing {
}
}

tasks.koverVerify {
rule {
name = "Minimal code coverage"
bound {
minValue = 90
}
}
kover {
verify {
rule {
name = "Minimal code coverage"
bound {
minValue = 90
}
}
}
}
16 changes: 9 additions & 7 deletions spine/build.gradle.kts
Expand Up @@ -58,11 +58,13 @@ publishing {
}
}

tasks.koverVerify {
rule {
name = "Minimal code coverage"
bound {
minValue = 80
}
}
kover {
verify {
rule {
name = "Minimal code coverage"
bound {
minValue = 80
}
}
}
}
2 changes: 1 addition & 1 deletion versions.properties
Expand Up @@ -11,7 +11,7 @@ plugin.com.palantir.git-version=0.15.0

plugin.org.jetbrains.dokka=1.7.10

plugin.org.jetbrains.kotlinx.kover=0.5.1
plugin.org.jetbrains.kotlinx.kover=0.6.0

version.com.auth0..java-jwt=3.19.2

Expand Down

0 comments on commit da678fb

Please sign in to comment.