]> source.dussan.org Git - vaadin-framework.git/commitdiff
Run longest/prioritized tests first
authorArtur Signell <artur.signell@itmill.com>
Mon, 10 Jan 2011 19:25:33 +0000 (19:25 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 10 Jan 2011 19:25:33 +0000 (19:25 +0000)
svn changeset:16843/svn branch:6.5

tests/test.xml

index a1be76a13c810b970496729c38ef93ccb09f4d4b..5d991f22c9dc722000b7cc8fa708415d40eb6f8c 100644 (file)
        </target>
 
        <target name="run-tests" depends="compile-tests" if="server.start.succeeded">
-               <for threadCount="20" parallel="true" keepgoing="true" param="target">
+               <!-- Long tests are prioritized to even out load at the end of the test run -->
+               <!-- If you are interested in certain tests they can temporarily be added here -->
+               <fileset dir="${test-output-dir}" id="priority-tests-fileset">
+                       <include name="**/wysiwyg*.java" />
+                       <include name="**/reindeer*.java" />
+                       <include name="**/runo*.java" />
+                       <include name="**/demop*.java" />
+               </fileset>
+
+               <fileset dir="${test-output-dir}" id="other-tests-fileset">
+                       <include name="**/**.java" />
+               </fileset>
+
+
+               <for threadCount="20" parallel="true" keepgoing="true" param="target" list="${tests-to-run}" delimiter=" ">
+                       <!-- A path element APPARENTLY removes duplicates and therefore this works. Could not find this documented anywhere... -->
                        <path>
-                               <fileset dir="${test-output-dir}" includes="**/**.java" />
+                               <fileset refid="priority-tests-fileset" />
+                               <fileset refid="other-tests-fileset" />
                        </path>
                        <sequential>
                                <antcall target="execute-tests">