diff --git a/build.gradle.kts b/build.gradle.kts index b56973a60..0c16b804b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { @@ -40,3 +41,19 @@ allprojects { tasks.withType().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")) +} diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 9576bad56..8dfbb094f 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -12,6 +12,7 @@ plugins { kotlin("plugin.serialization") id("org.jetbrains.dokka") `maven-publish` + id("org.jetbrains.kotlinx.kover") } mavenPublicationsPom { diff --git a/serialization/build.gradle.kts b/serialization/build.gradle.kts index 5d56fe4eb..45f8ee6ba 100644 --- a/serialization/build.gradle.kts +++ b/serialization/build.gradle.kts @@ -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