]> source.dussan.org Git - vaadin-framework.git/commitdiff
Clean temp folder and error images before creating and running tests
authorArtur Signell <artur.signell@itmill.com>
Fri, 2 Oct 2009 07:58:16 +0000 (07:58 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 2 Oct 2009 07:58:16 +0000 (07:58 +0000)
svn changeset:9031/svn branch:6.1

tests/test.xml

index 2f7317e9d0ee2f6c863c670f1991c0bb75ffaf92..6c1b3ca074f078b23780787cb3f97ee8fc00e340 100644 (file)
@@ -22,7 +22,7 @@
        </fileset>
 
        <!-- This target converts HTML tests files to java junit tests. One test file for each browser is created. -->
-       <target name="create-tests">
+       <target name="create-tests" depends="remove-temp-testclasses">
                <fileset id="tests">
                        <include />
                </fileset>
@@ -95,7 +95,7 @@
        </target>
        
        <!-- This target runs the generated and compiled junit tests -->
-       <target name="execute-tests" depends="compile-tests,remove-error-screens">
+       <target name="execute-tests" depends="remove-error-screens,compile-tests">
                <junit fork="yes" printsummary="withOutAndErr">
                        <classpath>
                                <path refid="classpath" />
        </target>
 
        <!-- Remove temporary source and compiled java files -->
-       <target name="remove-temp-files">
+       <target name="remove-temp-testclasses">
                <delete>
                        <fileset dir="${test-output-dir}">
                                <include name="**/**.java" />
+                               <include name="**/**.class" />
                        </fileset>
                </delete>
        </target>
     <!-- ================================================================== -->
 
     <!-- The default target. -->
-       <target name="run-and-clean-up" depends="check-parameters, run-tests,remove-temp-files">
+       <target name="run-and-clean-up" depends="check-parameters, run-tests,remove-temp-testclasses">
        </target>
 
     <!-- Also starts the server. -->