From 09fd494836c91d5c2531f9010b0f04f1ff9d27f3 Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Thu, 23 Jan 2020 23:46:07 -0500 Subject: [PATCH] Adds jacoco for code coverage (#5084) * Adds jacoco for code coverage This sets up jacoco instrumentation for code coverage. Preparing for master and PR coverage reporting via sonarcloud. * Set initial required coverage to 0 --- pom.xml | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c4fb85ca131..2bfd23742cf 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,52 @@ --> + + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + test + + report + + + + default-check + + check + + + + + PACKAGE + + + LINE + COVEREDRATIO + 0 + + + + + + + + + + **/gradle-wrapper.jar + + + org.apache.maven.plugins maven-surefire-plugin @@ -159,8 +205,18 @@ false none:none org.testng:testng - -XX:+StartAttachListener + @{argLine} -XX:+StartAttachListener + + + + org.jacoco + org.jacoco.agent + runtime + ${jacoco.version} + runtime + + maven-dependency-plugin @@ -1407,5 +1463,6 @@ 3.0.0-M3 0.9.10 3.2.0 + 0.8.5