Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
pom.xml 7.57 KiB
Newer Older
<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>eu.europa.ec.edelivery</groupId>
        <artifactId>smp-modules</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
        <version>4.2-SNAPSHOT</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <artifactId>smp-soapui-tests</artifactId>
    <packaging>jar</packaging>
    <name>smp-soapui-tests</name>
    <description>Interation tests suit for SMP</description>

    <properties>
        <!-- url>http://localhost:7001/smp</url -->
        <SMPAdminUser></SMPAdminUser>
        <SMPAdminPassword></SMPAdminPassword>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
    <profiles>
        <!-- soap ui -->
        <profile>
            <id>run-soapui</id>
            <build>
                <defaultGoal>test</defaultGoal>
                <plugins>
                    <plugin>
                        <groupId>com.smartbear.soapui</groupId>
                        <artifactId>soapui-pro-maven-plugin</artifactId>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <version>5.1.2</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <configuration>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                            <outputFolder>${build.directory}/soapui-reports/</outputFolder>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                            <junitReport>true</junitReport>
                            <printReport>true</printReport>
                            <settingsFile>${basedir}/soapui/soapui-settings.xml</settingsFile>
                            <soapuiProperties>
                                <property>
                                    <name>soapui.scripting.library</name>
                                    <value>${basedir}/groovy</value>
                                </property>
                                <property>
                                    <name>soapui.logroot</name>
                                    <value>${sonar.jacoco.codeCoveragePath}/soapui/logs/</value>
                                </property>
                                <property>
                                    <name>http.nonProxyHosts</name>
                                    <value>localhost|127.*|[::1]</value>
                                </property>
                            </soapuiProperties>
                            <testFailIgnore>true</testFailIgnore>
                            <projectFile>${basedir}/soapui/SMP4.0-Generic-soapui-project.xml
                            </projectFile>
                            <testSuite>PASSING_AUTO_BAMBOO</testSuite>
                            <!--If you want to execute single test case <testCase>SMP001-Create ServiceGroup-Basic Flow-Admin Service Group specified</testCase>-->
                            <projectProperties>
                                <value>url=${url}</value>
                                <value>SMPAdminUser=${SMPAdminUser}</value>
                                <value>SMPAdminPassword=${SMPAdminPassword}</value>
                            </projectProperties>
                        </configuration>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <executions>
                            <execution>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>test</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <!-- extract classes so that JACOCO plugin can find the classes
                    to generate a report (use this option to get Code coverage report for SOAPUI project)
                    -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-dependency-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>unpack</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>unpack</goal>
                                </goals>
                                <configuration>
                                    <artifactItems>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>smp-api</artifactId>
                                            <version>${project.version}</version>
                                            <type>jar</type>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>smp-server-library</artifactId>
                                            <version>${project.version}</version>
                                            <type>jar</type>
                                        </artifactItem>
                                        <artifactItem>
                                            <groupId>${project.groupId}</groupId>
                                            <artifactId>smp</artifactId>
                                            <version>${project.version}</version>
                                            <type>war</type>
                                        </artifactItem>
                                    </artifactItems>
                                    <includes>eu/europa/ec/edelivery/smp/**/*.class</includes>
                                    <outputDirectory>${project.build.directory}/classes</outputDirectory>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

                </plugins>
            </build>
        </profile>
        <!-- soap ui -->
        <profile>
            <id>dump-code-coverage</id>
            <build>
                <defaultGoal>test</defaultGoal>
                <plugins>
                    <!-- dump jacoco report from remote agent and generate report  -->
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <version>${jacoco.maven.plugin.version}</version>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <configuration>
                            <classDumpDir>${project.build.outputDirectory}../target/</classDumpDir>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        </configuration>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                        <executions>
                            <execution>
                                <phase>post-integration-test</phase>
                                <goals>
                                    <goal>dump</goal>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                                    <goal>report</goal>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                                </goals>
                                <configuration>
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                                    <!-- dataFile>${project.build.directory}/jacoco.exec</dataFile -->
Joze RIHTARSIC's avatar
Joze RIHTARSIC committed
                                    <address>${sonar.jacoco.remoteAddress}</address>
                                    <port>${sonar.jacoco.remotePort}</port>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>