Skip to content

Commit

Permalink
root: Update plugin kover to v0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and MrHadiSatrio committed Sep 24, 2024
1 parent 2be915c commit 8581edf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
35 changes: 18 additions & 17 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 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.7.1" }
sonar = { id = "org.sonarqube", version = "4.0.0.2929" }
Expand Down

0 comments on commit 8581edf

Please sign in to comment.