Update build.gradle.kts
This commit is contained in:
parent
47878ad3d3
commit
a0286d5047
@ -8,8 +8,10 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.jacocoTestReport {
|
tasks.jacocoTestReport {
|
||||||
|
dependsOn(tasks.test) // Ensure tests are run before generating the report
|
||||||
reports {
|
reports {
|
||||||
xml.required = false
|
xml.isEnabled = true // Enable XML report
|
||||||
|
html.isEnabled = true // Enable HTML report
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,4 +76,5 @@ dependencies {
|
|||||||
|
|
||||||
tasks.withType<Test> {
|
tasks.withType<Test> {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
|
finalizedBy(tasks.jacocoTestReport) // Run JaCoCo report after tests
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user