]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merged [9586]: Cleaned up parameters. Renamed test-browsers to browsers.
authorArtur Signell <artur.signell@itmill.com>
Tue, 3 Nov 2009 07:05:33 +0000 (07:05 +0000)
committerArtur Signell <artur.signell@itmill.com>
Tue, 3 Nov 2009 07:05:33 +0000 (07:05 +0000)
Added more parallelism to tests

svn changeset:9587/svn branch:6.2

tests/test.xml

index 20d7649e96aeac87e0ecf9df55dde3131ce1000a..c841f8e03b1dbdab5c2dc1850bfba6a5d60ce051 100644 (file)
@@ -4,14 +4,19 @@
        <!-- ================================================================== -->
        <!-- Configuration                                                      -->
        <!-- ================================================================== -->
-       <!-- Temporary output directory, created and removed by this script -->
-       <property name="test-output-dir" value="../build/test-output" />
-       <property name="class-dir" value="${test-output-dir}/classes" />
+       <!-- Browsers to use for testing -->
+       <property name="browsers" value="winxp-ie6,winxp-ie7,winxp-ie8,winxp-firefox35,winxp-safari4,winxp-googlechrome3,winxp-opera10" />
+       
+       <!-- Screen shot base directory -->
        <property name="com.vaadin.testbench.screenshot.directory" value="../tests/screenshots" />
+       
+       <!-- Host running Testbench Hub -->
        <property name="com.vaadin.testbench.tester.host" value="192.168.1.44" />
-       <!-- Browsers to use for testing -->
-       <property name="test-browsers" value="winxp-ie6,winxp-ie7,winxp-ie8,winxp-firefox35,winxp-safari4,winxp-googlechrome3,winxp-opera10" />
 
+       <!-- Temporary output directory, created and removed by this script -->
+       <property name="test-output-dir" value="../build/test-output" />
+
+       <property name="class-dir" value="${test-output-dir}/classes" />
        <taskdef resource="net/sf/antcontrib/antcontrib.properties">
                <classpath>
                        <pathelement location="../build/lib/ant-contrib-1.0b3.jar"/>
@@ -38,7 +43,7 @@
 
                <java classname="com.vaadin.testbench.util.TestConverter" classpathref="classpath">
                        <arg value="${test-output-dir}" />
-                       <arg value="${test-browsers}" />
+                       <arg value="${browsers}" />
                        <arg line="${testfiles}" />
                </java>
        </target>
                <fail unless="com.vaadin.testbench.deployment.url" message="The 'com.vaadin.testbench.deployment.url' property must be defined." />
        </target>
 
-       <target name="run-tests" depends="remove-error-screens,compile-tests">
-               <foreach parallel="true" target="execute-tests" param="target">
+       <target name="run-tests" depends="remove-error-screens, compile-tests">
+               <foreach maxthreads="10" parallel="true" target="execute-tests" param="target">
                        <path>
                                <fileset dir="${test-output-dir}" includes="**/**.java" />
                        </path>