Skip to content

Commit

Permalink
JaCoCo
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-laa committed Feb 11, 2024
1 parent b88a023 commit ae42e82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.22"
id("com.adarshr.test-logger") version "4.0.0"
id("jacoco")
id("org.sonarqube") version "4.4.1.3373"
}

Expand Down Expand Up @@ -56,3 +57,10 @@ tasks.withType<KotlinCompile> {
tasks.withType<Test> {
useJUnitPlatform()
}

tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
reports {
xml.required = true
}
}

0 comments on commit ae42e82

Please sign in to comment.