Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

root: Update plugin kover to v0.8.3 #285

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import io.gitlab.arturbosch.detekt.extensions.DetektExtension
import kotlinx.kover.gradle.plugin.dsl.AggregationType
import kotlinx.kover.gradle.plugin.dsl.GroupingEntityType
import kotlinx.kover.gradle.plugin.dsl.KoverReportExtension
import kotlinx.kover.gradle.plugin.dsl.MetricType
import kotlinx.kover.gradle.plugin.dsl.KoverProjectExtension
import kotlinx.kover.gradle.plugin.dsl.CoverageUnit

plugins {
//trick: for the same plugin versions in all sub-modules
Expand All @@ -18,7 +18,7 @@ plugins {
allprojects {
configurations.all {
resolutionStrategy {
force("org.xerial:sqlite-jdbc:3.46.0.1")
force("org.xerial:sqlite-jdbc:3.46.0.0")
}
}
}
Expand Down Expand Up @@ -46,23 +46,24 @@ subprojects {
}

apply(plugin = libs.plugins.kover.get().pluginId)
extensions.configure<KoverReportExtension> {
filters {
excludes {
classes("*Fake*", "*Test")
extensions.configure<KoverProjectExtension> {
reports {
filters {
excludes {
classes("*Fake*", "*Test")
}
}
}
defaults {
verify {
onCheck = true
rule("Branch coverage must exceed 90%") {
isEnabled = true
entity = GroupingEntityType.APPLICATION
total {
verify {
onCheck = true
rule("Branch coverage must exceed 90%") {
groupBy = GroupingEntityType.APPLICATION

bound {
minValue = 90
metric = MetricType.BRANCH
aggregation = AggregationType.COVERED_PERCENTAGE
bound {
minValue = 90
coverageUnits = CoverageUnit.BRANCH
aggregationForGroup = AggregationType.COVERED_PERCENTAGE
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ androidLibrary = { id = "com.android.library", version.ref = "agp" }
appVersioning = { id = "io.github.reactivecircus.app-versioning", version = "1.3.2" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.7.5" }
kover = { id = "org.jetbrains.kotlinx.kover", version = "0.8.3" }
detekt = { id = "io.gitlab.arturbosch.detekt", version = "1.23.6" }
sentry = { id = "io.sentry.android.gradle", version = "4.10.0" }
sonar = { id = "org.sonarqube", version = "4.0.0.2929" }
Expand Down
Loading