From 98f8f3e727008cf2a91c97f604535aa42686a0e9 Mon Sep 17 00:00:00 2001 From: Andrew Bell <115623869+andybharness@users.noreply.github.com> Date: Fri, 25 Nov 2022 16:00:31 +0000 Subject: [PATCH] [FFM-5247] Fix Jacoco code coverage report (#124) What Fix the Jacoco code coverage plugin to correctly generate coverage reports. Surefire plugin will stomp over the command line arguments needed by Jacoco and they need to be preserved with some additional configuration. Why We want to be able to generate Jacoco code coverage reports so that downstream pipelines can consume coverage information for better reporting Testing Confirmed target/jacoco.exec and ./target/site/jacoco/index.html exists after building via cmd line --- pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 24d33819..e8cffcae 100644 --- a/pom.xml +++ b/pom.xml @@ -398,20 +398,22 @@ true + ${surefireArgLine} -Xmx1024m -noverify org.jacoco jacoco-maven-plugin - 0.8.7 + 0.8.8 + default-prepare-agent prepare-agent - report + generate-code-coverage-report test report @@ -421,6 +423,7 @@ SDK version + surefireArgLine