From 5f1d4a79db0e7fb726cc2f311a0acbf847604c37 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Tue, 21 Jan 2020 10:48:11 -0500 Subject: Add sonar/jacoco config Add necessary sonar/jacoco config changes for new version of scanner compatible with sonarcloud. Change-Id: Ie2a68e6ef9e4ab411fa33d4fc94bc4a385d78d64 Issue-ID: SDNC-1020 Signed-off-by: Dan Timoney --- pom.xml | 1 - pomba/pom.xml | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 628ed3c..dfe9642 100644 --- a/pom.xml +++ b/pom.xml @@ -19,7 +19,6 @@ POM to be used for apps in SDNC project - client pomba diff --git a/pomba/pom.xml b/pomba/pom.xml index c823064..0cfde48 100644 --- a/pomba/pom.xml +++ b/pomba/pom.xml @@ -31,6 +31,20 @@ limitations under the License. 1.8.0-SNAPSHOT pom + + + 3.7.0.1746 + 3.2 + jacoco + + ${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml,${project.reporting.outputDirectory}/jacoco-it/jacoco.xml + + **/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/** + + + 0.8.5 + + network-discovery network-discovery-api @@ -51,6 +65,104 @@ limitations under the License. + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + pre-unit-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + surefireArgLine + + + + + post-unit-test + test + + report + + + + ${project.build.directory}/code-coverage/jacoco-ut.exec + + ${project.reporting.outputDirectory}/jacoco-ut + + + + pre-integration-test + pre-integration-test + + prepare-agent + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + failsafeArgLine + + + + + post-integration-test + post-integration-test + + report + + + + ${project.build.directory}/code-coverage/jacoco-it.exec + + ${project.reporting.outputDirectory}/jacoco-it + + + + default-prepare-agent + + prepare-agent + + + + default-report + prepare-package + + report + + + + default-check + + check + + + + + PACKAGE + + + COMPLEXITY + COVEREDRATIO + 0.0 + + + + + + + + -- cgit 1.2.3-korg