From 8b5e78f86280a0e3ad82a310d779102a531271a4 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 23 Jan 2019 00:18:15 +0100 Subject: [PATCH] Add coverage aggregation This recognizes sonar build and runs jacoco report aggregation, so that test coverage across modules is accounted for. Change-Id: I45b303b8e87adb3d43b2405b1df5cd14791148e8 Signed-off-by: Robert Varga --- pom.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/pom.xml b/pom.xml index 2f7da37091..3e94309d10 100644 --- a/pom.xml +++ b/pom.xml @@ -81,6 +81,42 @@ and is available at http://www.eclipse.org/legal/epl-v10.html no-sfc + + sonar-jacoco-aggregate + + + odl.jacoco.aggregateFile + + + + + + org.jacoco + jacoco-maven-plugin + + + merge + + merge + + generate-resources + + ${odl.jacoco.aggregateFile} + + + ${project.basedir} + + **/target/code-coverage/*.exec + + + + + + + + + + -- 2.36.6