Skip to content

Commit

Permalink
Added coverage measurement using Kover (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanshin committed Apr 19, 2024
1 parent 9d59199 commit 9de96c0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("kotlinx.team.infra") version "0.4.0-dev-81"
kotlin("multiplatform") apply false
id("org.jetbrains.kotlinx.kover") version "0.8.0-Beta2"
}

infra {
Expand Down Expand Up @@ -40,3 +41,19 @@ allprojects {
tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}

kover {
reports {
verify {
rule {
// requirement for a minimum lines coverage of 85%
minBound(85)
}
}
}
}

dependencies {
kover(project(":kotlinx-datetime"))
kover(project(":kotlinx-datetime-serialization"))
}
1 change: 1 addition & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ plugins {
kotlin("plugin.serialization")
id("org.jetbrains.dokka")
`maven-publish`
id("org.jetbrains.kotlinx.kover")
}

mavenPublicationsPom {
Expand Down
1 change: 1 addition & 0 deletions serialization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import java.util.Locale
plugins {
id("kotlin-multiplatform")
kotlin("plugin.serialization")
id("org.jetbrains.kotlinx.kover")
}

val mainJavaToolchainVersion: String by project
Expand Down

0 comments on commit 9de96c0

Please sign in to comment.