| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF 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/maven-v4_0_0.xsd"> |
| |
| <parent> |
| <groupId>org.apache.jspwiki</groupId> |
| <artifactId>jspwiki-builder</artifactId> |
| <version>2.10.0-SNAPSHOT</version> |
| </parent> |
| |
| <groupId>org.apache.jspwiki.it</groupId> |
| <artifactId>jspwiki-it-builder</artifactId> |
| <modelVersion>4.0.0</modelVersion> |
| <description>selenium tests execution for jspwiki</description> |
| <packaging>pom</packaging> |
| |
| <modules> |
| <module>jspwiki-selenium-tests</module> |
| <module>jspwiki-it-test-custom</module> |
| <module>jspwiki-it-test-custom-absolute-urls</module> |
| <module>jspwiki-it-test-custom-jdbc</module> |
| <module>jspwiki-it-test-cma</module> |
| <module>jspwiki-it-test-cma-jdbc</module> |
| </modules> |
| |
| <profiles> |
| <profile> |
| <id>integration-tests</id> |
| <build> |
| <finalName>${project.artifactId}</finalName> |
| <testResources><!-- this enables tests reuse [1/2] --> |
| <testResource> |
| <directory>${project.basedir}/../jspwiki-selenium-tests/src/test/resources</directory> |
| <filtering>true</filtering> |
| </testResource> |
| </testResources> |
| |
| <resources> |
| <resource><!-- this enables tests reuse [2/2] --> |
| <directory>${project.basedir}/../jspwiki-selenium-tests/src/main/resources</directory> |
| <filtering>true</filtering> |
| </resource> |
| </resources> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <version>2.4</version> |
| </plugin> |
| |
| <!-- Activates the HSQLDB database for IT tests --> |
| <plugin> |
| <groupId>com.btmatthews.maven.plugins.inmemdb</groupId> |
| <artifactId>inmemdb-maven-plugin</artifactId> |
| <version>1.3.0</version> |
| <configuration> |
| <monitorKey>inmem</monitorKey> |
| <monitorPort>11157</monitorPort> |
| </configuration> |
| <executions> |
| <execution> |
| <id>run</id> |
| <phase>pre-integration-test</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <daemon>true</daemon> |
| <type>hsqldb</type> |
| <database>jspwiki</database> |
| <username>sa</username> |
| <password /> |
| <sources> |
| <script> |
| <sourceFile>jspwiki-selenium-tests/src/main/config/hsql-userdb-setup.sql</sourceFile> |
| </script> |
| </sources> |
| </configuration> |
| </execution> |
| <execution> |
| <id>stop</id> |
| <phase>post-integration-test</phase> |
| <goals> |
| <goal>stop</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- <browser>*firefox</browser> --> |
| <!-- <browser>*iexplore</browser> --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>selenium-maven-plugin</artifactId> |
| <version>2.3</version> |
| <configuration> |
| <browser>*googlechrome</browser> |
| <startURL>http://localhost:8080/${project.artifactId}/</startURL> |
| <suite>target/test-classes/selenium/TestSuite.html</suite> |
| <background>true</background> |
| </configuration> |
| <executions> |
| <execution> |
| <id>test</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>selenese</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- Additional Tomcat configuration (JNDI lookups for DB access, tomcat-users.xml file) |
| located in pom.xml of submodules using them. --> |
| <plugin> |
| <groupId>org.apache.tomcat.maven</groupId> |
| <artifactId>tomcat7-maven-plugin</artifactId> |
| <version>2.1</version> |
| <executions> |
| <execution> |
| <id>tomcat-run</id> |
| <goals> |
| <goal>run-war</goal> |
| </goals> |
| <phase>pre-integration-test</phase> |
| <configuration> |
| <fork>true</fork> |
| <systemProperties> |
| <user.language>en</user.language> |
| <user.region>US</user.region> |
| </systemProperties> |
| </configuration> |
| </execution> |
| <execution> |
| <id>tomcat-shutdown</id> |
| <goals> |
| <goal>shutdown</goal> |
| </goals> |
| <phase>post-integration-test</phase> |
| </execution> |
| </executions> |
| <dependencies> |
| <dependency> |
| <groupId>org.hsqldb</groupId> |
| <artifactId>hsqldb</artifactId> |
| <version>2.3.0</version> |
| </dependency> |
| </dependencies> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| </build> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.jspwiki</groupId> |
| <artifactId>jspwiki-war</artifactId> |
| <version>${project.version}</version> |
| <type>war</type> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.seleniumhq.selenium</groupId> |
| <!-- (un)comment based on your browser preferences for tests execution --> |
| <artifactId>selenium-chrome-driver</artifactId> |
| <!-- <artifactId>selenium-ie-driver</artifactId> --> |
| <!-- <artifactId>selenium-firefox-driver</artifactId> --> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |