From 0338683186c994d579b1ec297604dba59df73dff Mon Sep 17 00:00:00 2001 From: Ravi Geda Date: Mon, 1 Apr 2019 13:27:57 +0100 Subject: [PATCH] Enforce minimum Jacoco line coverage Change-Id: I27e1cf95384ebe5213f4a0f082a1a4360af2675c Issue-ID: AAI-2305 Signed-off-by: Ravi Geda --- champ-lib/champ-core/pom.xml | 6 +++ champ-lib/champ-janus/pom.xml | 70 ++-------------------------------- champ-lib/champ-titan/pom.xml | 70 ++-------------------------------- champ-lib/pom.xml | 87 ++----------------------------------------- champ-service/pom.xml | 3 ++ pom.xml | 32 ++++++++++++++++ 6 files changed, 50 insertions(+), 218 deletions(-) diff --git a/champ-lib/champ-core/pom.xml b/champ-lib/champ-core/pom.xml index ada6905..5779296 100644 --- a/champ-lib/champ-core/pom.xml +++ b/champ-lib/champ-core/pom.xml @@ -32,6 +32,12 @@ limitations under the License. org.onap.aai.champ.champ-lib champ-core + + + + 0.81 + diff --git a/champ-lib/champ-janus/pom.xml b/champ-lib/champ-janus/pom.xml index ab808b2..6d714df 100644 --- a/champ-lib/champ-janus/pom.xml +++ b/champ-lib/champ-janus/pom.xml @@ -35,6 +35,9 @@ limitations under the License. 3.2.3 + + 0.65 @@ -111,73 +114,6 @@ limitations under the License. - - org.jacoco - jacoco-maven-plugin - 0.7.9 - - - default-prepare-agent - - prepare-agent - - - - default-report - prepare-package - - report - - - - default-check - - check - - - - - - BUNDLE - - - - INSTRUCTION - COVEREDRATIO - .15 - - - BRANCH - COVEREDRATIO - .14 - - - COMPLEXITY - COVEREDRATIO - .15 - - - LINE - COVEREDRATIO - .18 - - - METHOD - COVEREDRATIO - .10 - - - CLASS - MISSEDCOUNT - 2 - - - - - - - - org.apache.maven.plugins maven-deploy-plugin diff --git a/champ-lib/champ-titan/pom.xml b/champ-lib/champ-titan/pom.xml index a08305d..b3a446d 100644 --- a/champ-lib/champ-titan/pom.xml +++ b/champ-lib/champ-titan/pom.xml @@ -34,6 +34,9 @@ limitations under the License. 3.0.1-incubating + + 0.72 @@ -122,73 +125,6 @@ limitations under the License. - - org.jacoco - jacoco-maven-plugin - 0.7.9 - - - default-prepare-agent - - prepare-agent - - - - default-report - prepare-package - - report - - - - default-check - - check - - - - - - BUNDLE - - - - INSTRUCTION - COVEREDRATIO - .15 - - - BRANCH - COVEREDRATIO - .14 - - - COMPLEXITY - COVEREDRATIO - .15 - - - LINE - COVEREDRATIO - .18 - - - METHOD - COVEREDRATIO - .10 - - - CLASS - MISSEDCOUNT - 2 - - - - - - - - org.apache.maven.plugins maven-deploy-plugin diff --git a/champ-lib/pom.xml b/champ-lib/pom.xml index e734607..e21c16f 100644 --- a/champ-lib/pom.xml +++ b/champ-lib/pom.xml @@ -48,6 +48,9 @@ limitations under the License. + + 0.79 @@ -57,94 +60,10 @@ limitations under the License. 4.12 test - - org.jacoco - org.jacoco.agent - 0.7.9 - runtime - test - - - org.jacoco - jacoco-maven-plugin - 0.7.9 - - - - **/AbstractGremlinChampGraph* - **/DseChampGraphImpl* - **/DseChampformer* - - **/ChampAPIPerformanceTest* - - - - - default-prepare-agent - - prepare-agent - - - - default-report - prepare-package - - report - - - - default-check - - check - - - - - - BUNDLE - - - - INSTRUCTION - COVEREDRATIO - .15 - - - BRANCH - COVEREDRATIO - .12 - - - COMPLEXITY - COVEREDRATIO - .15 - - - LINE - COVEREDRATIO - .10 - - - METHOD - COVEREDRATIO - .17 - - - CLASS - MISSEDCOUNT - 5 - - - - - - - - org.apache.maven.plugins maven-compiler-plugin diff --git a/champ-service/pom.xml b/champ-service/pom.xml index 1efa608..610de3f 100644 --- a/champ-service/pom.xml +++ b/champ-service/pom.xml @@ -42,6 +42,9 @@ limitations under the License. 3.7 1.3 1.5.19.RELEASE + + 0.16 diff --git a/pom.xml b/pom.xml index ddb677b..7084bf3 100755 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,10 @@ limitations under the License. https://nexus.onap.org 1.4.0-SNAPSHOT + + 0.57 + ${project.build.directory}/code-coverage @@ -55,6 +59,34 @@ limitations under the License. true + + org.jacoco + jacoco-maven-plugin + + + default-check + + check + + + ${jacoco.report.directory}/jacoco-ut.exec + + + + BUNDLE + + + LINE + COVEREDRATIO + ${jacoco.line.coverage.limit} + + + + + + + + -- 2.16.6