summaryrefslogtreecommitdiffstats
path: root/uitest/pom.xml
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/pom.xml')
-rw-r--r--uitest/pom.xml168
1 files changed, 110 insertions, 58 deletions
diff --git a/uitest/pom.xml b/uitest/pom.xml
index 84eeb9566d..ac7fe17758 100644
--- a/uitest/pom.xml
+++ b/uitest/pom.xml
@@ -12,6 +12,7 @@
<packaging>war</packaging>
<properties>
<skip.uitest.deployment>true</skip.uitest.deployment>
+ <skip.uitest.failsafe>true</skip.uitest.failsafe>
<!-- Don't care about coding style for tests -->
<sonar.skip>true</sonar.skip>
</properties>
@@ -260,6 +261,24 @@
</plugin>
<plugin>
+ <groupId>com.github.klieber</groupId>
+ <artifactId>phantomjs-maven-plugin</artifactId>
+ <configuration>
+ <skip>${skip.uitest.failsafe}</skip>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>install</goal>
+ </goals>
+ <configuration>
+ <version>${phantomjs.version}</version>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
@@ -267,6 +286,10 @@
<httpConnector>
<port>8888</port>
</httpConnector>
+ <scanIntervalSeconds>-1</scanIntervalSeconds>
+ <stopPort>8889</stopPort>
+ <stopWait>5</stopWait>
+ <stopKey>foo</stopKey>
</configuration>
</plugin>
@@ -283,18 +306,39 @@
</configuration>
</plugin>
<plugin>
- <artifactId>maven-surefire-plugin</artifactId>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>animal-sniffer-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
+ <artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <skip>${skip.uitest.failsafe}</skip>
+ <includes>
+ <include>**/AllTB3Tests.java</include>
+ </includes>
+ <systemPropertyVariables>
+ <com.vaadin.testbench.screenshot.directory>${project.parent.basedir}/tests/screenshots</com.vaadin.testbench.screenshot.directory>
+ <com.vaadin.testbench.max.retries>2</com.vaadin.testbench.max.retries>
+ </systemPropertyVariables>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -327,20 +371,43 @@
</properties>
</profile>
<profile>
- <id>default</id>
+ <id>test</id>
<activation>
- <activeByDefault>true</activeByDefault>
+ <activeByDefault>false</activeByDefault>
</activation>
+ <properties>
+ <skip.uitest.failsafe>false</skip.uitest.failsafe>
+ </properties>
<build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludedGroups>com.vaadin.testcategory.MeasurementTest</excludedGroups>
- </configuration>
- </plugin>
- </plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.jetty</groupId>
+ <artifactId>jetty-maven-plugin</artifactId>
+
+ <executions>
+ <!-- start and stop jetty (running our app)
+ when running integration tests -->
+ <execution>
+ <id>start-jetty</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>stop-jetty</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
</build>
+
</profile>
<profile>
<id>measurements</id>
@@ -369,54 +436,39 @@
</systemPropertyVariables>
</configuration>
</plugin>
- <plugin>
- <groupId>org.eclipse.jetty</groupId>
- <artifactId>jetty-maven-plugin</artifactId>
- <configuration>
- <httpConnector>
- <port>8888</port>
- </httpConnector>
- <scanIntervalSeconds>-1</scanIntervalSeconds>
- <stopPort>8081</stopPort>
- <stopWait>5</stopWait>
- <stopKey>foo</stopKey>
- </configuration>
- <executions>
- <!-- start and stop jetty (running our app) when
- running integration tests -->
- <execution>
- <id>start-jetty</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>start</goal>
- </goals>
- </execution>
- <execution>
- <id>stop-jetty</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>stop</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.github.klieber</groupId>
- <artifactId>phantomjs-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>install</goal>
- </goals>
- <configuration>
- <version>${phantomjs.version}</version>
- </configuration>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
</profile>
+ <profile>
+ <id>validation</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <systemPropertyVariables>
+ <useLocalWebDriver>true</useLocalWebDriver>
+ <browsers.include>phantomjs1</browsers.include>
+ <categories.exclude>push,needs-ssh</categories.exclude>
+ </systemPropertyVariables>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
</profiles>
</project>