chore: Koverのカバレッジレポートを出力できるように

This commit is contained in:
usbharu 2023-11-06 17:49:34 +09:00
parent 8a770ab1f2
commit 4719098037
1 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,7 @@ plugins {
id("org.springframework.boot") version "3.1.3" id("org.springframework.boot") version "3.1.3"
kotlin("plugin.spring") version "1.8.21" kotlin("plugin.spring") version "1.8.21"
id("org.openapi.generator") version "7.0.1" id("org.openapi.generator") version "7.0.1"
id("org.jetbrains.kotlinx.kover") version "0.7.4"
// id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10" // id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"
} }
@ -199,3 +200,22 @@ configurations.matching { it.name == "detekt" }.all {
} }
} }
} }
kover {
excludeSourceSets {
names("aot")
}
}
koverReport {
filters {
excludes {
packages(
"dev.usbharu.hideout.controller.mastodon.generated",
"dev.usbharu.hideout.domain.mastodon.model.generated"
)
packages("org.springframework")
packages("org.jetbrains")
}
}
}