From 52d00c9124de8f20eaeb62b35f95a41ab74e7549 Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Tue, 6 Dec 2022 14:04:51 -0700
Subject: [PATCH] add jacoco reports for other tests

---
 build.gradle | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/build.gradle b/build.gradle
index e8ebc82c..a239e1c8 100644
--- a/build.gradle
+++ b/build.gradle
@@ -34,10 +34,13 @@ jacoco {
 }
 
 jacocoTestReport {
+  getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/*.exec"))
+
   reports {
     xml.enabled true
     html.enabled true
   }
+
   afterEvaluate {
     classDirectories.from(files(classDirectories.files.collect {
       fileTree(
@@ -48,6 +51,10 @@ jacocoTestReport {
 }
 check.dependsOn jacocoTestReport
 
+tasks.withType(Test) {
+  finalizedBy jacocoTestReport
+}
+
 tasks.withType(JavaCompile) {
   options.encoding = "UTF-8"
   options.compilerArgs.add("-parameters")
-- 
GitLab