diff --git a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java index cc7f1576..5256761b 100644 --- a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java +++ b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/extensions/CarbonServerManagerExtension.java @@ -230,7 +230,8 @@ public class CarbonServerManagerExtension { if(this.isCoverageEnable) { try { log.info("Generating Jacoco code coverage..."); - this.generateCoverageReport(new File(this.carbonHome + File.separator + "repository" + File.separator + "components" + File.separator + "plugins" + File.separator)); + this.generateCoverageReport(new File(this.carbonHome + File.separator + "wso2" + + File.separator + "components" + File.separator + "plugins" + File.separator)); } catch (IOException var7) { log.error("Failed to generate code coverage ", var7); throw new AutomationFrameworkException("Failed to generate code coverage ", var7); diff --git a/modules/integration/tests-integration/pom.xml b/modules/integration/tests-integration/pom.xml index 2b0ef4d4..044feb65 100644 --- a/modules/integration/tests-integration/pom.xml +++ b/modules/integration/tests-integration/pom.xml @@ -90,18 +90,17 @@ - copy-emma-dependencies + copy-jacoco-dependencies compile copy-dependencies - ${project.build.directory}/emma + ${project.build.directory}/jacoco jar - emma + org.jacoco.agent - copy-secVerifier compile @@ -272,6 +271,10 @@ org.eclipse.paho org.eclipse.paho.client.mqttv3 + + org.jacoco + org.jacoco.agent + diff --git a/modules/integration/tests-integration/src/test/resources/automation.xml b/modules/integration/tests-integration/src/test/resources/automation.xml index 249ba192..0e5fe5a9 100644 --- a/modules/integration/tests-integration/src/test/resources/automation.xml +++ b/modules/integration/tests-integration/src/test/resources/automation.xml @@ -32,7 +32,7 @@ - false + true diff --git a/modules/integration/tests-integration/src/test/resources/instrumentation.txt b/modules/integration/tests-integration/src/test/resources/instrumentation.txt index 8f3eacdd..8e73b3de 100644 --- a/modules/integration/tests-integration/src/test/resources/instrumentation.txt +++ b/modules/integration/tests-integration/src/test/resources/instrumentation.txt @@ -14,6 +14,7 @@ org.wso2.carbon.device.mgt.input.adapter.extension_ org.wso2.carbon.device.mgt.input.adapter.mqtt_ org.wso2.carbon.device.mgt.input.adapter.thrift_ org.wso2.carbon.device.mgt.input.adapter.xmpp_ +org.wso2.carbon.device.mgt.input.adapter.http_ org.wso2.carbon.device.mgt.mobile.android_ org.wso2.carbon.device.mgt.mobile.windows_ org.wso2.carbon.device.mgt.mqtt.notification.listener_ @@ -32,4 +33,8 @@ org.wso2.carbon.certificate.mgt.core_ org.wso2.carbon.email.sender.core_ org.wso2.carbon.identity.jwt.client.extension_ org.wso2.carbon.identity.authenticator.backend.oauth_ -org.wso2.carbon.webapp.authenticator.framework_ \ No newline at end of file +org.wso2.carbon.webapp.authenticator.framework_ +org.wso2.carbon.device.mgt.analytics.dashboard_ +org.wso2.carbon.complex.policy.decision.point_ +org.wso2.carbon.appmgt.mdm.osgiconnector_ +org.wso2.carbon.appmgt.mdm.restconnector_ diff --git a/modules/integration/tests-iot-web-ui/pom.xml b/modules/integration/tests-iot-web-ui/pom.xml index 76c5611a..49d31d84 100644 --- a/modules/integration/tests-iot-web-ui/pom.xml +++ b/modules/integration/tests-iot-web-ui/pom.xml @@ -91,20 +91,6 @@ maven-dependency-plugin - - - copy-emma-dependencies - compile - - copy-dependencies - - - ${project.build.directory}/emma - jar - emma - - - copy-secVerifier compile diff --git a/modules/integration/tests-iot-web-ui/src/test/resources/automation.xml b/modules/integration/tests-iot-web-ui/src/test/resources/automation.xml index af4b314e..e0d27299 100644 --- a/modules/integration/tests-iot-web-ui/src/test/resources/automation.xml +++ b/modules/integration/tests-iot-web-ui/src/test/resources/automation.xml @@ -32,7 +32,7 @@ - false + true diff --git a/modules/integration/tests-iot-web-ui/src/test/resources/emma.properties b/modules/integration/tests-iot-web-ui/src/test/resources/emma.properties deleted file mode 100644 index 9c48e81b..00000000 --- a/modules/integration/tests-iot-web-ui/src/test/resources/emma.properties +++ /dev/null @@ -1,105 +0,0 @@ -# ------------------------------------------------------------- -# -# for user-editable property overrides use one of these options: -# -# (1) option-specific command line overrides, e.g. -# -Dreport.txt.out.file=coverage.txt -# -# (2) '-p ' command line option, -# -# (3) 'emma.properties' resource placed somewhere in the classpath -# (e.g., in \classes directory -- note that it does -# not exist by default), -# -# (4) '-Demma.*' JVM options, e.g. -# -Demma.report.txt.out.file=coverage.txt -# -# (5) 'emma.properties' JVM option pointing to a properties file -# -Demma.properties=./myproperties.txt -# ------------------------------------------------------------- - -# ------------------------------------------------------------- -# logging properties: - -verbosity.level: none - -# classloading properties: - -#clsload.forced_delegation_filter: -#clsload.through_delegation_filter: -* - -# ------------------------------------------------------------- - -# instrumentation properties: - -instr.exclude_empty_classes: true -instr.exclude_synthetic_methods: true -instr.exclude_bridge_methods: true -instr.do_suid_compensation: true - -# ------------------------------------------------------------- - -# runtime properties: - -rt.control: false -rt.control.host: localhost -#rt.control.port: 44444 - -rt.filelock: true -#rt.filelock.portbase: 59141 -rt.filelock.maxtime: 120000 -rt.filelock.retries: 11 - -# ------------------------------------------------------------- - -# apprunner session data output properties: - -session.out.file: coverage.es -session.out.merge: true - -# ------------------------------------------------------------- - -# runtime coverage data output properties: - -coverage.out.file: coverage.ec -coverage.out.merge: true - -# ------------------------------------------------------------- - -# instr metadata output properties: - -metadata.out.file: coverage.em -metadata.out.merge: true - -# ------------------------------------------------------------- - -# common report defaults: - -report.units: instr -report.depth: method -report.columns: name, line, block, method, class -report.sort: -line,-block,-method,-class,+name -report.metrics: method:40,block:80,line:40,class:100 - -# ------------------------------------------------------------- -# txt report properties: - -report.txt.depth: all -report.txt.columns: class,method,block,line,name -report.txt.out.file: coverage.txt - -# ------------------------------------------------------------- -# html report properties: - -#report.html.out.dir: coverage -#report.html.out.file: /Users/azeez/Desktop/coverage/index.html -report.html.out.encoding: ISO-8859-1 - -# ------------------------------------------------------------- -# xml report properties: - -#report.xml.out.file: coverage.xml -report.xml.out.encoding: UTF-8 -# ------------------------------------------------------------- -# end of file - diff --git a/pom.xml b/pom.xml index a9e8ab09..564f7f37 100644 --- a/pom.xml +++ b/pom.xml @@ -50,7 +50,7 @@ org.wso2.carbon.automation org.wso2.carbon.automation.engine - ${test.framework.version} + ${platform.integration.utils.version} org.slf4j @@ -1596,7 +1596,7 @@ 4.4.2 4.2.7 3.3.0 - 0.7.4.201502262128 + 0.7.5.201505241946 1.1.1 3.3.2 2.2