From c242de2e9d47102f99b754afc8cdff7a2a517843 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 b9831fd87..cc1e5cf8a 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 @@ -311,19 +318,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 e1d4532cc..ec6375a9c 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 acb800481..0ad4c41ca 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 ebe7cca89..0ff8ac139 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