From d723641c7abb97aa2022bb901d53915bfdae9859 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn <100320+knorrium@users.noreply.github.com> Date: Fri, 30 Jun 2023 00:22:58 -0700 Subject: [PATCH] Enable JaCoCo code coverage reports --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6c106ac3..e6ead5c8 100644 --- a/build.gradle +++ b/build.gradle @@ -5,6 +5,7 @@ plugins { id 'org-openjfx-javafxplugin' id 'extra-java-module-info' id 'org.beryx.jlink' version '2.26.0' + id 'jacoco' } def sparrowVersion = '1.7.8' @@ -158,6 +159,15 @@ processResources { test { jvmArgs '--add-opens=java.base/java.io=com.google.gson' + finalizedBy jacocoTestReport +} + +jacocoTestReport { + dependsOn test +} + +jacoco { + toolVersion = '0.8.10' } run { @@ -730,4 +740,4 @@ extraJavaModuleInfo { requires('org.hamcrest.core') } module('hamcrest-core-1.3.jar', 'org.hamcrest.core', '1.3') -} \ No newline at end of file +}