diff options
author | Mikael Grankvist <mikael.grankvist@itmill.com> | 2010-12-21 09:26:35 +0000 |
---|---|---|
committer | Mikael Grankvist <mikael.grankvist@itmill.com> | 2010-12-21 09:26:35 +0000 |
commit | 4fc4227039540c0f3351cf6432650cc494a77a17 (patch) | |
tree | 02b9cd652a4e9634e60e4e44de4b00958374f416 /tests/test.xml | |
parent | 9bbcf97ca5cd326b378ab4fd6b04d6d575ffaac5 (diff) | |
download | vaadin-framework-4fc4227039540c0f3351cf6432650cc494a77a17.tar.gz vaadin-framework-4fc4227039540c0f3351cf6432650cc494a77a17.zip |
Retry tests only run if create.retry.tests and retries are given
svn changeset:16597/svn branch:6.5
Diffstat (limited to 'tests/test.xml')
-rw-r--r-- | tests/test.xml | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/test.xml b/tests/test.xml index 00c270be91..0711bf5410 100644 --- a/tests/test.xml +++ b/tests/test.xml @@ -43,11 +43,13 @@ <exclude name="tests/integration-testscripts/**" /> </fileset> + <!-- fileset containing tests to retry --> + <fileset dir=".." id="html-retry-files-ie6"> + <include name="tests/**/ComboBoxLargeIcons.html" /> + </fileset> + <!-- This target converts HTML tests files to java junit tests. One test file for each browser is created. --> <target name="create-tests" depends="remove-temp-testclasses" if="server.start.succeeded"> - <fileset id="tests"> - <include /> - </fileset> <pathconvert pathsep=" " property="testfiles" refid="html-test-files" /> <java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> @@ -57,21 +59,17 @@ </java> </target> - <target name="create-retry-tests"> + + <target name="create-retry-tests" if="create.retry.tests"> <antcall target="convert-retry-test"> <param name="browser" value="winxp-ie6" /> - <param name="testfile-name" value="tests/**/ComboBoxLargeIcons.html" /> - <param name="retries" value="3" /> + <param name="testfile-name" value="html-retry-files-ie6" /> </antcall> </target> - + <!-- Target converts test files so that the whole test can be re run 'retries' times --> - <target name="convert-retry-test"> - <fail unless="retries" message="The 'retries' property must be defined." /> - <fileset dir=".." id="test-files"> - <include name="${testfile-name}" /> - </fileset> - <pathconvert pathsep=" " property="testfile" refid="test-files" /> + <target name="convert-retry-test" if="retries"> + <pathconvert pathsep=" " property="testfile" refid="${testfile-name}" /> <java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath"> <sysproperty key="com.vaadin.testbench.test.retries" value="${retries}" /> @@ -212,4 +210,4 @@ <target name="test-package" depends="server-start, run-and-clean-up, server-stop"> </target> -</project> +</project>
\ No newline at end of file |