From cfceb5bc60cbf0d622db1f41466ace602c3ab6e5 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 11 Sep 2018 17:04:51 +0200 Subject: [PATCH] Experiment: aggregate jacoco for sonar This is a second cut, overriding targets for jacoco and also pointing sonar to the aggregate report. Change-Id: I07f13985edfbe766c41f6adff1a714c31b6d017a Signed-off-by: Robert Varga --- common/concepts/pom.xml | 28 +++++++++++++++++++++ common/util/pom.xml | 28 +++++++++++++++++++++ pom.xml | 34 ++++++++++++++++++++++++++ yang/odlext-model-api/pom.xml | 31 ++++++++++++++++++++++- yang/odlext-parser-support/pom.xml | 28 +++++++++++++++++++++ yang/openconfig-model-api/pom.xml | 28 +++++++++++++++++++++ yang/openconfig-parser-support/pom.xml | 28 +++++++++++++++++++++ yang/rfc6536-model-api/pom.xml | 28 +++++++++++++++++++++ yang/rfc6536-parser-support/pom.xml | 28 +++++++++++++++++++++ yang/rfc7952-model-api/pom.xml | 28 +++++++++++++++++++++ yang/rfc7952-parser-support/pom.xml | 28 +++++++++++++++++++++ yang/rfc8040-model-api/pom.xml | 28 +++++++++++++++++++++ yang/rfc8040-parser-support/pom.xml | 28 +++++++++++++++++++++ yang/yang-common/pom.xml | 28 +++++++++++++++++++++ yang/yang-data-api/pom.xml | 28 +++++++++++++++++++++ yang/yang-data-codec-gson/pom.xml | 28 +++++++++++++++++++++ yang/yang-data-codec-xml/pom.xml | 28 +++++++++++++++++++++ yang/yang-data-impl/pom.xml | 20 ++++++++++++--- yang/yang-data-jaxen/pom.xml | 28 +++++++++++++++++++++ yang/yang-data-util/pom.xml | 28 +++++++++++++++++++++ yang/yang-model-api/pom.xml | 28 +++++++++++++++++++++ yang/yang-model-export/pom.xml | 28 +++++++++++++++++++++ yang/yang-model-util/pom.xml | 28 +++++++++++++++++++++ yang/yang-parser-api/pom.xml | 28 +++++++++++++++++++++ yang/yang-parser-impl/pom.xml | 28 +++++++++++++++++++++ yang/yang-parser-reactor/pom.xml | 28 +++++++++++++++++++++ yang/yang-parser-rfc7950/pom.xml | 28 +++++++++++++++++++++ yang/yang-parser-spi/pom.xml | 28 +++++++++++++++++++++ yang/yang-xpath-api/pom.xml | 28 +++++++++++++++++++++ yang/yang-xpath-impl/pom.xml | 28 +++++++++++++++++++++ 30 files changed, 836 insertions(+), 5 deletions(-) diff --git a/common/concepts/pom.xml b/common/concepts/pom.xml index 97072d8065..c94db498bb 100644 --- a/common/concepts/pom.xml +++ b/common/concepts/pom.xml @@ -24,6 +24,10 @@ ${project.artifactId} Common concepts + + ${project.base.directory}/../../target/jacoco.exec + + @@ -63,6 +67,30 @@ true + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${project.build.directory}/code-coverage/jacoco.exec + + + + post-unit-test + + report + + + ${project.build.directory}/code-coverage/jacoco.exec + + + + diff --git a/common/util/pom.xml b/common/util/pom.xml index aac8c19242..7b9a63cbdb 100644 --- a/common/util/pom.xml +++ b/common/util/pom.xml @@ -21,6 +21,10 @@ util 2.1.0-SNAPSHOT + + ${project.base.directory}/../../target/jacoco.exec + + @@ -78,6 +82,30 @@ true + + org.jacoco + jacoco-maven-plugin + + + pre-unit-test + + prepare-agent + + + ${project.build.directory}/code-coverage/jacoco.exec + + + + post-unit-test + + report + + + ${project.build.directory}/code-coverage/jacoco.exec + + + + diff --git a/pom.xml b/pom.xml index c08d2a7029..d604a681fe 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,10 @@ HEAD + + ${project.build.directory}/jacoco.exec + + artifacts benchmarks @@ -40,6 +44,36 @@ third-party + + + + org.jacoco + jacoco-maven-plugin + + + merge + + merge + + generate-resources + + + + ${project.basedir} + + common/*/target/code-coverage/*.exec + third-party/*/target/code-coverage/*.exec + yang/*/target/code-coverage/*.exec + + + + + + + + + +