From 57830eb06448e12398b5d6de58a8f19ef93a41e5 Mon Sep 17 00:00:00 2001 From: megala21 Date: Fri, 22 Sep 2017 01:34:44 +0530 Subject: [PATCH] Finalizing the unit test report generation and fixing the maven warnings in build --- .../pom.xml | 4 - .../org.wso2.carbon.device.mgt.api/pom.xml | 15 - components/test-coverage/pom.xml | 294 +++++++++++++----- .../pom.xml | 26 ++ pom.xml | 25 -- 5 files changed, 240 insertions(+), 124 deletions(-) diff --git a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml index 638fbc2812..b58f6cd918 100644 --- a/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml +++ b/components/device-mgt-extensions/org.wso2.carbon.device.mgt.extensions.pull.notification/pom.xml @@ -50,10 +50,6 @@ org.eclipse.osgi org.eclipse.osgi.services - - org.eclipse.osgi - org.eclipse.osgi.services - org.wso2.carbon.devicemgt org.wso2.carbon.policy.mgt.core diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml index c06ceec899..0f49928c94 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/pom.xml @@ -203,11 +203,6 @@ org.wso2.carbon.device.mgt.extensions provided - - org.wso2.carbon.devicemgt - org.wso2.carbon.apimgt.integration.client - provided - org.wso2.carbon.devicemgt org.wso2.carbon.device.mgt.core @@ -358,16 +353,6 @@ ${carbon.identity.framework.version} provided - - org.wso2.carbon.analytics - org.wso2.carbon.analytics.datasource.commons - provided - - - org.wso2.carbon.analytics - org.wso2.carbon.analytics.api - provided - org.wso2.carbon.analytics org.wso2.carbon.analytics.dataservice.commons diff --git a/components/test-coverage/pom.xml b/components/test-coverage/pom.xml index 7545f58784..98ec41372b 100644 --- a/components/test-coverage/pom.xml +++ b/components/test-coverage/pom.xml @@ -1,4 +1,22 @@ - + + + @@ -11,7 +29,7 @@ 4.0.0 test-coverage - + WSO2 Carbon - Unit Test Coverage Generation target coverage-reports @@ -87,9 +105,9 @@ ${basedir}/../${identity.extensions}/org.wso2.carbon.device.mgt.oauth.extensions - + ${basedir}/../${identity.extensions}/org.wso2.carbon.identity.authenticator.backend.oauth - + ${basedir}/../${identity.extensions}/org.wso2.carbon.identity.jwt.client.extension @@ -106,6 +124,11 @@ ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.mgt.common ${basedir}/../${policy.mgt}/org.wso2.carbon.policy.mgt.core + + + + ${basedir}/../webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework + @@ -130,6 +153,7 @@ + @@ -152,6 +176,9 @@ + + + @@ -188,98 +215,155 @@ + + + + + + + - + + + - + + + - + + + + - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -294,34 +378,84 @@ - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + - - - - - - + diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml index 07406a0333..b9608b4bf6 100644 --- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml +++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/pom.xml @@ -129,6 +129,32 @@ + + org.jacoco + jacoco-maven-plugin + + ${basedir}/target/coverage-reports/jacoco-unit.exec + + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + test + + report + + + ${basedir}/target/coverage-reports/jacoco-unit.exec + ${basedir}/target/coverage-reports/site + + + + diff --git a/pom.xml b/pom.xml index c8e34d39f9..82eace8b1e 100644 --- a/pom.xml +++ b/pom.xml @@ -897,11 +897,6 @@ org.wso2.carbon.identity.application.common ${carbon.identity.framework.version} - - org.wso2.carbon.identity - org.wso2.carbon.identity.oauth2.grant.jwt - ${identity.jwt.extension.version} - org.wso2.carbon.identity.framework org.wso2.carbon.user.mgt @@ -1134,16 +1129,6 @@ org.wso2.carbon.application.mgt.stub ${carbon.commons.version} - - org.wso2.carbon.analytics - org.wso2.carbon.analytics.api - ${carbon.analytics.version} - - - org.wso2.carbon.analytics - org.wso2.carbon.analytics.datasource.commons - ${carbon.analytics.version} - org.wso2.carbon.event-processing org.wso2.carbon.event.processor.stub @@ -1374,11 +1359,6 @@ org.wso2.carbon.event.output.adapter.core ${carbon.analytics.common.version} - - org.wso2.carbon.analytics-common - org.wso2.carbon.event.receiver.stub - ${carbon.analytics.common.version} - org.wso2.carbon.analytics org.wso2.carbon.analytics.datasource.commons @@ -1389,11 +1369,6 @@ org.wso2.carbon.analytics.dataservice.commons ${carbon.analytics.version} - - org.wso2.carbon.analytics-common - org.wso2.carbon.event.stream.stub - ${carbon.analytics.common.version} - org.wso2.carbon.analytics-common org.wso2.carbon.event.publisher.stub