From 82b35846ce6bba97c417c8a7d77e4e3fa35825fc Mon Sep 17 00:00:00 2001 From: Anton Vasetenkov Date: Thu, 4 Jul 2024 06:22:19 +1200 Subject: [PATCH] Reporting coverage across subprojects (#1374) * JaCoCo config * JaCoCo config * JaCoCo config * JaCoCo config * JaCoCo config --- Src/java/engine-fhir/build.gradle | 18 ++++++++++++++++++ Src/java/engine/build.gradle | 15 +++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/Src/java/engine-fhir/build.gradle b/Src/java/engine-fhir/build.gradle index 4b1b9dd34..178c6ba77 100644 --- a/Src/java/engine-fhir/build.gradle +++ b/Src/java/engine-fhir/build.gradle @@ -23,4 +23,22 @@ generateSources { "-p org.hl7.fhirpath.tests") } } +} + +jacocoTestReport { + dependsOn ':cql-to-elm:test' + dependsOn ':engine:test' + dependsOn ':engine-fhir:test' + + sourceDirectories.setFrom(files( + "${projectDir}/../cql-to-elm/src/main/java", + "${projectDir}/../engine/src/main/java", + "${projectDir}/../engine-fhir/src/main/java", + )) + + classDirectories.setFrom(files( + "${projectDir}/../cql-to-elm/build/classes/java/main", + "${projectDir}/../engine/build/classes/java/main", + "${projectDir}/../engine-fhir/build/classes/java/main", + )) } \ No newline at end of file diff --git a/Src/java/engine/build.gradle b/Src/java/engine/build.gradle index b7b3e9535..03871059e 100644 --- a/Src/java/engine/build.gradle +++ b/Src/java/engine/build.gradle @@ -10,3 +10,18 @@ dependencies { testImplementation project(':elm-jackson') testImplementation 'org.mockito:mockito-core:5.4.0' } + +jacocoTestReport { + dependsOn ':cql-to-elm:test' + dependsOn ':engine:test' + + sourceDirectories.setFrom(files( + "${projectDir}/../cql-to-elm/src/main/java", + "${projectDir}/../engine/src/main/java", + )) + + classDirectories.setFrom(files( + "${projectDir}/../cql-to-elm/build/classes/java/main", + "${projectDir}/../engine/build/classes/java/main", + )) +} \ No newline at end of file