diff options
author | Henri Sara <hesara@vaadin.com> | 2016-11-01 10:51:49 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2016-11-01 10:54:21 +0200 |
commit | 92d697b9886896f1dad41026ba3519563838f93e (patch) | |
tree | c406cd38a8a66567e213fabd958c7146052d4211 /uitest | |
parent | 287614dbabc4ec8f2e72f56067312ad47ce46f5d (diff) | |
download | vaadin-framework-92d697b9886896f1dad41026ba3519563838f93e.tar.gz vaadin-framework-92d697b9886896f1dad41026ba3519563838f93e.zip |
Add target test-all for UI tests
The target allows running both normal and server integration tests
without cleaning the screenshot directory in between.
Change-Id: Ic0d5db325b831114434a83c7d77be36ac8b20a61
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/build.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/uitest/build.xml b/uitest/build.xml index ab0c154ba8..6a40f8e539 100644 --- a/uitest/build.xml +++ b/uitest/build.xml @@ -28,6 +28,31 @@ <get src="${vaadin.build.repository}/com/vaadin/vaadin-uitest/${vaadin.version}/vaadin-uitest-${vaadin.version}.war" dest="${vaadin.basedir}/uitest/target/vaadin-uitest-${vaadin.version}.war"/> </target> + <!-- run both normal and server tests --> + <target name="test-all" depends="clean-testbench-errors"> + <property name="war.file" + location="${vaadin.basedir}/uitest/target/vaadin-uitest-${vaadin.version}.war" /> + <mkdir dir="${vaadin.basedir}/result" /> + <parallel> + <daemons> + <ant antfile="${uitest.dir}/vaadin-server.xml" + inheritall="true" inheritrefs="true" target="deploy-and-start" /> + </daemons> + <sequential> + <ant antfile="${uitest.dir}/vaadin-server.xml" + target="wait-for-startup" /> + <ant antfile="${uitest.dir}/tb3test.xml" target="run-all-tb3-tests" + inheritall="true" /> + <!-- within sequential for now not to cause problems with result parsing in CI --> + <ant antfile="${uitest.dir}/integration_tests.xml" + target="integration-test-all" inheritall="false" + inheritrefs="false"> + <property name="demo.war" value="${war.file}" /> + </ant> + </sequential> + </parallel> + </target> + <target name="test-server" depends="clean-testbench-errors"> <property name="war.file" location="${vaadin.basedir}/uitest/target/vaadin-uitest-${vaadin.version}.war" /> |