From fc6f7b084dd7bfd96632eeb0e4e6001d0df94d72 Mon Sep 17 00:00:00 2001 From: Darin Kelkhoff Date: Thu, 3 Jul 2025 14:48:52 -0500 Subject: [PATCH] Enhance Jacoco coverage summary output to include module name and improve readability with additional separators. --- pom.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 291e05db..0f55dd18 100644 --- a/pom.xml +++ b/pom.xml @@ -247,7 +247,7 @@ if [ ! -e target/site/jacoco/index.html ]; then fi echo -echo "Jacoco coverage summary report:" +echo "Jacoco coverage summary report for module: ${project.artifactId}" echo " See also target/site/jacoco/index.html" echo " and https://www.jacoco.org/jacoco/trunk/doc/counters.html" echo "------------------------------------------------------------" @@ -261,11 +261,14 @@ if [ -f target/site/jacoco/index.html ]; then else echo "Jacoco coverage summary was not found."; fi +echo "-----------------------------" +echo -echo "Untested classes, per Jacoco:" +echo "Untested classes, per Jacoco for module: ${project.artifactId}" echo "-----------------------------" # Parse Jacoco XML reports directly to find classes with 0% coverage sed 's//&\n/g;s/<\/class>/&\n/g' target/site/jacoco/jacoco.xml | grep -v 'counter type="CLASS" missed="0"' | sed 's/>.*//;s/.*\///;s/".*//' +echo "-----------------------------" echo ]]>