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
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~    http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>

    <parent>
        <artifactId>org.wso2.mb.integration.tests</artifactId>
        <groupId>org.wso2.mb</groupId>
        <version>3.0.0-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <name>Integration Test Reporting</name>
    <artifactId>org.wso2.carbon.mb.integration.reports</artifactId>
    <packaging>pom</packaging>

    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.2.1</version>

                <executions>
                    <execution>
                        <id>my-exec</id>
                        <phase>install</phase>
                        <goals>
                            <goal>exec</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <executable>java</executable>
                    <arguments>
                        <argument>-Dbasedir=${basedir}</argument>
                        <argument>
                            -Dcarbon.zip=${basedir}/../../../distribution/target/wso2mb-${project.version}.zip
                        </argument>
                        <argument>-Dinstr.file=${basedir}/src/main/resources/instrumentation.txt</argument>
                        <argument>-Dfilters.file=${basedir}/src/main/resources/filters.txt</argument>
                        <argument>-classpath</argument>
                        <classpath/>
                        <argument>
                            org.wso2.carbon.automation.engine.frameworkutils.TestCoverageGenerator
                        </argument>
                    </arguments>
                    <workingDirectory>${basedir}/target</workingDirectory>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-jacoco-dependencies</id>
                        <phase>compile</phase>
                        <goals>
                            <goal>copy-dependencies</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/jacoco</outputDirectory>
                            <includeTypes>jar</includeTypes>
                            <includeArtifactIds>org.jacoco.agent</includeArtifactIds>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.wso2.carbon.automation</groupId>
            <artifactId>org.wso2.carbon.automation.engine</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.wso2.carbon.automationutils</groupId>
            <artifactId>org.wso2.carbon.integration.common.utils</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jacoco</groupId>
            <artifactId>org.jacoco.agent</artifactId>
        </dependency>
    </dependencies>

</project>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to