From 0205b62804a89fb66ea7d60bf77931f18067859d Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sat, 12 Feb 2022 10:55:58 +0000 Subject: [PATCH] jacoco test reports for core --- core/build.gradle | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/core/build.gradle b/core/build.gradle index b612174b..abe74766 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -2,6 +2,7 @@ plugins { id 'java-library' id 'maven-publish' + id 'jacoco' } dependencies { @@ -29,10 +30,20 @@ configurations.testImplementation { exclude group:'org.codehaus.groovy', module:'groovy-testng' } -test.doFirst { - jvmArgs=["--add-opens","java.base/java.lang=ALL-UNNAMED", +test { + doFirst { + jvmArgs=["--add-opens","java.base/java.lang=ALL-UNNAMED", "--add-opens","java.base/sun.nio.fs=ALL-UNNAMED", "--add-opens","java.base/java.nio=ALL-UNNAMED"] + } + finalizedBy jacocoTestReport +} + +jacocoTestReport { + reports { + xml.required = true + html.outputLocation = layout.buildDirectory.dir('jacocoHtml') + } } // publish core to local maven repo for sister projects