2024-09-17 12:24:25 +00:00
|
|
|
import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
|
|
|
|
|
2024-06-01 09:23:44 +00:00
|
|
|
plugins {
|
2024-09-17 12:24:25 +00:00
|
|
|
alias(libs.plugins.kotlin.jvm)
|
|
|
|
alias(libs.plugins.kover)
|
2024-06-01 09:23:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2024-09-17 12:24:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
|
2024-12-19 09:19:35 +00:00
|
|
|
withType<Test> {
|
|
|
|
useJUnitPlatform()
|
2024-09-17 12:24:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kover {
|
|
|
|
currentProject {
|
|
|
|
sources {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
reports {
|
|
|
|
verify {
|
|
|
|
rule {
|
|
|
|
bound {
|
|
|
|
minValue = 50
|
|
|
|
coverageUnits = CoverageUnit.INSTRUCTION
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
total {
|
|
|
|
xml {
|
|
|
|
title = "Hideout ActivityPub"
|
|
|
|
xmlFile = file("$buildDir/reports/kover/hideout-activitypub.xml")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
filters {
|
|
|
|
excludes {
|
|
|
|
annotatedBy("org.springframework.context.annotation.Configuration")
|
|
|
|
annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties")
|
|
|
|
packages(
|
|
|
|
"dev.usbharu.hideout.controller.mastodon.generated",
|
|
|
|
"dev.usbharu.hideout.domain.mastodon.model.generated"
|
|
|
|
)
|
|
|
|
packages("org.springframework")
|
|
|
|
packages("org.jetbrains")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|