You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
161 lines
6.9 KiB
161 lines
6.9 KiB
<?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.iot.integration.tests</artifactId>
|
|
<groupId>org.wso2.iot</groupId>
|
|
<version>1.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>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>with-tests</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
<property><name>!maven.test.skip</name></property>
|
|
</activation>
|
|
<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/wso2iot-broker-${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>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>without-tests</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
<property><name>maven.test.skip</name></property>
|
|
</activation>
|
|
<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>
|
|
<skip>true</skip>
|
|
<executable>java</executable>
|
|
<arguments>
|
|
<argument>-Dbasedir=${basedir}</argument>
|
|
<argument>
|
|
-Dcarbon.zip=${basedir}/../../../distribution/target/wso2iot-broker-${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>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<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>
|