summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-02-25 22:38:19 +0900
committerSho Sakuma <me@m1sk9.dev>2026-02-25 22:38:44 +0900
commitf4bf20791f4470d3e9b865a53b610b5f277ebb82 (patch)
tree7d0b3f9d3eff87730413290d4436b43ff6146b7a /build.gradle.kts
parent56ed04185036635dcfd2763391cd64b8be371b1a (diff)
downloadLunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.tar.gz
LunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.tar.bz2
LunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.zip
feat: add Codecov/Jacoco integration and expand test coverage
- Add Jacoco plugin to all subprojects with XML report generation - Replace post-test-results.sh with Codecov upload in CI workflow - Add codecov.yml configuration - Add 140 new tests across engine, platform-paper, and platform-velocity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts11
1 files changed, 11 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index 36906c9..d2bd265 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -1,3 +1,4 @@
+import org.gradle.testing.jacoco.tasks.JacocoReport
import org.jetbrains.dokka.gradle.DokkaExtension
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -27,6 +28,7 @@ subprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
apply(plugin = "org.jetbrains.dokka")
+ apply(plugin = "jacoco")
tasks.withType<KotlinCompile> {
compilerOptions {
@@ -36,6 +38,15 @@ subprojects {
tasks.withType<Test> {
useJUnitPlatform()
+ finalizedBy(tasks.named("jacocoTestReport"))
+ }
+
+ tasks.withType<JacocoReport> {
+ dependsOn(tasks.withType<Test>())
+ reports {
+ xml.required.set(true)
+ html.required.set(false)
+ }
}
configure<DokkaExtension> {