From 25d6ce4711e603949e1c99577a9463879bd0ceb4 Mon Sep 17 00:00:00 2001 From: Marcel Date: Sat, 28 Mar 2026 16:29:09 +0100 Subject: [PATCH] test(#120): add JaCoCo branch coverage gate to Maven build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds JaCoCo 0.8.12 with prepare-agent, report, and check executions. Baseline measured at 46.8% branch coverage. Gate set at 42% (baseline minus 5%) to prevent regression while giving room to close the gap. Excluded from measurement: DTOs, config classes, model entities, ErrorCode enum — these contain no testable branch logic. Target is 80%; gap documented in issue #120. Co-Authored-By: Claude Sonnet 4.6 --- backend/pom.xml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/backend/pom.xml b/backend/pom.xml index 81eacb23..f2dc9a8b 100644 --- a/backend/pom.xml +++ b/backend/pom.xml @@ -171,6 +171,51 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + **/dto/** + **/config/** + **/exception/ErrorCode* + **/model/** + + + + + prepare-agent + prepare-agent + + + report + verify + report + + + + check + verify + check + + + + BUNDLE + + + BRANCH + COVEREDRATIO + 0.42 + + + + + + + + org.springframework.boot spring-boot-maven-plugin