diff options
Diffstat (limited to 'uitest/build.xml')
-rw-r--r-- | uitest/build.xml | 96 |
1 files changed, 3 insertions, 93 deletions
diff --git a/uitest/build.xml b/uitest/build.xml index 6a40f8e539..8dbf659383 100644 --- a/uitest/build.xml +++ b/uitest/build.xml @@ -1,97 +1,7 @@ -<?xml version="1.0"?> +<project> -<project name="vaadin-uitest" basedir="." default="test-tb3" - xmlns:ivy="antlib:org.apache.ivy.ant"> - <description> - Provides a uitest WAR containing Vaadin UI tests - </description> - <include file="../common.xml" as="common" /> - - <!-- global properties --> - <property name="module.name" value="vaadin-uitest" /> - <property name="uitest.dir" location="${vaadin.basedir}/uitest" /> - <property name="result.dir" value="result" /> - <property name="theme.result.dir" value="${result.dir}/VAADIN/themes" /> - <property name="result.war" - location="${result.dir}/lib/${module.name}-${vaadin.version}.war" /> - - <!-- Need to give a default value to keep Ivy happy --> - <property name="vaadin.build.repository" value="http://maven.vaadin.com/vaadin-prereleases"/> - - <target name="clean"> - <fail unless="result.dir" message="No result.dir parameter given" /> - <delete dir="${result.dir}" /> - </target> - - <target name="fetch-war"> - <mkdir dir="${vaadin.basedir}/uitest/target"/> - <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 name="test-tb3"> + <echo>This Ant script is no longer used to test the framework. Run `mvn verify -P test` to execute browser tests.</echo> </target> - <target name="test-server" depends="clean-testbench-errors"> - <property name="war.file" - location="${vaadin.basedir}/uitest/target/vaadin-uitest-${vaadin.version}.war" /> - <ant antfile="${uitest.dir}/integration_tests.xml" - target="integration-test-all" inheritall="false" - inheritrefs="false"> - <property name="demo.war" value="${war.file}" /> - </ant> - </target> - - <target name="test-tb3" 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" /> - </sequential> - </parallel> - </target> - - <target name="clean-testbench-errors"> - <fail unless="com.vaadin.testbench.screenshot.directory" - message="Define screenshot directory using -Dcom.vaadin.testbench.screenshot.directory" /> - <mkdir dir="${com.vaadin.testbench.screenshot.directory}/errors" /> - <delete> - <fileset - dir="${com.vaadin.testbench.screenshot.directory}/errors"> - <include name="*" /> - </fileset> - </delete> - </target> - - </project> |