Hi Hemika, Its because your coverage data files not created since you skipped the tests.
As a workaround you can execute the maven exec plugin in report module based on a activation condition defined for -Dmaven.test.skip. Also you need to define new profile with activateByDefault property set to true. Please refer [1] [2] for more details. [1] http://stackoverflow.com/questions/5443097/conditionally-execute-maven-plugins [2] http://books.sonatype.com/mvnref-book/reference/profiles-sect-activation.html Thanks, Krishantha. On Wed, Jun 10, 2015 at 2:21 PM, Hemika Kodikara <[email protected]> wrote: > Hi All, > > I was moving the wso2 test automation framework of MB to 4.4.0 and I am > facing this issue. > > When building the product with tests enabled(mvn clean install) all works > fine without an issue. > > But when building with tests skipped(mvn clean install > -Dmaven.test.skip=true), I am getting the following error. > > > Exception in thread "main" > org.wso2.carbon.automation.engine.exceptions.AutomationFrameworkException: > Couldn't find coverage data files at > /Users/hemikakodikara/mb/dev/300/product-mb/modules/integration/tests-integration/reports/target/jacoco > at > org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.load(CodeCoverageUtils.java:286) > at > org.wso2.carbon.automation.engine.frameworkutils.CodeCoverageUtils.executeMerge(CodeCoverageUtils.java:268) > at > org.wso2.carbon.automation.engine.frameworkutils.TestCoverageGenerator.main(TestCoverageGenerator.java:51) > > > In MB there is a "Merge Coverage report" as mentioned in [1]. I have > attached the pom.xml file of the "reports" module. > > Currently these changes are not merged to the product. But can view them > at [2]. > > [1] - > https://docs.google.com/document/d/1pMJGdRH4Kmc4J3rYzgnpGlR5AnSeoC4QL9gMX9tUhYs/edit#heading=h.ouu74oaqo3zh > > [2] - https://github.com/hemikak/product-mb/tree/ui-enable > > Regards, > Hemika > > Hemika Kodikara > Software Engineer > WSO2 Inc. > lean . enterprise . middleware > http://wso2.com > > Mobile : +94777688882 > -- Krishantha Samaraweera Senior Technical Lead - Test Automation Mobile: +94 77 7759918 WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
