Skip to content

Commit ae42e82

Browse files
committed
JaCoCo
1 parent b88a023 commit ae42e82

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id("io.spring.dependency-management") version "1.1.4"
55
kotlin("jvm") version "1.9.22"
66
id("com.adarshr.test-logger") version "4.0.0"
7+
id("jacoco")
78
id("org.sonarqube") version "4.4.1.3373"
89
}
910

@@ -56,3 +57,10 @@ tasks.withType<KotlinCompile> {
5657
tasks.withType<Test> {
5758
useJUnitPlatform()
5859
}
60+
61+
tasks.jacocoTestReport {
62+
dependsOn(tasks.test) // tests are required to run before generating the report
63+
reports {
64+
xml.required = true
65+
}
66+
}

0 commit comments

Comments
 (0)