From e7f437acd2535d2a67b9c3ed2087c477f88d842a Mon Sep 17 00:00:00 2001 From: NipunaMadhushan Date: Fri, 27 Sep 2024 11:00:00 +0530 Subject: [PATCH] Add jacoco codecov for build --- .../pom.xml | 21 +++++++++++ pom.xml | 37 ++++--------------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/monitoring-dashboard/integration/org.wso2.micro.integrator.dashboard.integration.tests/pom.xml b/monitoring-dashboard/integration/org.wso2.micro.integrator.dashboard.integration.tests/pom.xml index 2368c0004..b3a57a727 100644 --- a/monitoring-dashboard/integration/org.wso2.micro.integrator.dashboard.integration.tests/pom.xml +++ b/monitoring-dashboard/integration/org.wso2.micro.integrator.dashboard.integration.tests/pom.xml @@ -52,6 +52,27 @@ org.jacoco jacoco-maven-plugin 0.8.4 + + + + prepare-agent + + + + report + package + + report + + + ${project.build.directory}/jacoco + ${project.build.directory}/jacoco.exec + + **/*.class + + + + maven-surefire-plugin diff --git a/pom.xml b/pom.xml index 4c0a91933..722042c86 100644 --- a/pom.xml +++ b/pom.xml @@ -238,44 +238,21 @@ 0.8.4 - default-prepare-agent-by-coverage-enforcer + prepare-agent prepare-agent - - argLine - - default-report-by-coverage-enforcer - - report - - - ${project.build.directory}/jacoco.exec - - - - default-check-by-coverage-enforcer + report-aggregate + verify - check + report-aggregate - ${project.build.directory}/jacoco.exec - - - - BUNDLE - - - - LINE - COVEREDRATIO - 0.0 - - - - + + **/*.class +