From 404120d28cdb94866a66bb085752c3076c1fcd76 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Fri, 29 Sep 2017 10:52:07 +0200 Subject: Include IT coverage in JaCoCo and Sonar reports * introduces jacoco-it.exec which stores aggregated IT test execution data, * configures Sonar to use jacoco-it.exec to report IT coverage, * marks following modules as integration tests: - it-test - minimal-distribution-test - bgp-distribution-test Change-Id: I538c1febb6112a6abad29061f6b00259a0d79f9f Signed-off-by: Marek Gradzki --- common/honeycomb-parent/pom.xml | 20 ++++++++++++++++++-- infra/bgp-distribution-test/pom.xml | 13 +++++++++++++ infra/it/it-test/pom.xml | 13 +++++++++++++ infra/minimal-distribution-test/pom.xml | 13 +++++++++++++ 4 files changed, 57 insertions(+), 2 deletions(-) diff --git a/common/honeycomb-parent/pom.xml b/common/honeycomb-parent/pom.xml index 4488f1140..52ece9b23 100644 --- a/common/honeycomb-parent/pom.xml +++ b/common/honeycomb-parent/pom.xml @@ -34,6 +34,13 @@ **/gen/**,**/generated-sources/**,**/yang-gen** + + + + ${maven.multiModuleProjectDirectory}/common/honeycomb-parent/target/jacoco-it.exec UTF-8 UTF-8 @@ -323,19 +330,28 @@ ${jacoco.version} - pre-unit-test + agent-for-ut prepare-agent - post-unit-test + agent-for-it + + prepare-agent-integration + + + + jacoco-site report + + true **/gen/** **/generated-sources/** diff --git a/infra/bgp-distribution-test/pom.xml b/infra/bgp-distribution-test/pom.xml index f9ccafc8c..8401c88bb 100644 --- a/infra/bgp-distribution-test/pom.xml +++ b/infra/bgp-distribution-test/pom.xml @@ -57,4 +57,17 @@ test + + + + + org.jacoco + jacoco-maven-plugin + + + ${sonar.jacoco.itReportPath} + + + + \ No newline at end of file diff --git a/infra/it/it-test/pom.xml b/infra/it/it-test/pom.xml index db3200f73..422127f08 100644 --- a/infra/it/it-test/pom.xml +++ b/infra/it/it-test/pom.xml @@ -70,4 +70,17 @@ ${project.version} + + + + + org.jacoco + jacoco-maven-plugin + + + ${sonar.jacoco.itReportPath} + + + + \ No newline at end of file diff --git a/infra/minimal-distribution-test/pom.xml b/infra/minimal-distribution-test/pom.xml index b57abfc22..4a566a6ad 100644 --- a/infra/minimal-distribution-test/pom.xml +++ b/infra/minimal-distribution-test/pom.xml @@ -96,4 +96,17 @@ test + + + + + org.jacoco + jacoco-maven-plugin + + + ${sonar.jacoco.itReportPath} + + + + \ No newline at end of file -- cgit 1.2.3-korg