From a0286d504799f975d4b86115ae1674ba22a871bc Mon Sep 17 00:00:00 2001 From: Jan Gleytenhoover Date: Wed, 25 Sep 2024 15:00:43 +0000 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 3ba4ed2..3449e0d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,8 +8,10 @@ plugins { } tasks.jacocoTestReport { + dependsOn(tasks.test) // Ensure tests are run before generating the report reports { - xml.required = false + xml.isEnabled = true // Enable XML report + html.isEnabled = true // Enable HTML report } } @@ -74,4 +76,5 @@ dependencies { tasks.withType { useJUnitPlatform() + finalizedBy(tasks.jacocoTestReport) // Run JaCoCo report after tests } \ No newline at end of file