summaryrefslogtreecommitdiffstats
path: root/uitest/pom.xml
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <tsuoanttila@users.noreply.github.com>2017-02-01 17:17:15 +0200
committerHenri Sara <henri.sara@gmail.com>2017-02-01 17:17:15 +0200
commit53674a7cafc22e8e21f5a7d46df0f5c126fb76c6 (patch)
tree7bb8916c2b891808e78ca95f0ae150e9b03060cc /uitest/pom.xml
parent8e20ab0f05603cb81a8bdbf456f63c9a49eb1d3b (diff)
downloadvaadin-framework-53674a7cafc22e8e21f5a7d46df0f5c126fb76c6.tar.gz
vaadin-framework-53674a7cafc22e8e21f5a7d46df0f5c126fb76c6.zip
Refactor testing of the framework (#8393)
* Integration tests moved from uitest to separate test modules * Run TB4 tests with maven profile * Remove old ant/ivy build scripts from uitest * Add 'needs-ssh' test category for reconnection test * Add default values for testing and validation builds * Add placeholder build.xml with instructions to run Maven
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>