]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #3776 - Server side junit test cases should be run automatically on each...
authorArtur Signell <artur.signell@itmill.com>
Thu, 26 Nov 2009 15:31:25 +0000 (15:31 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 26 Nov 2009 15:31:25 +0000 (15:31 +0000)
svn changeset:10080/svn branch:6.2

build/build.xml

index b44acaeeb3a947bd3ce6fbff08c5d8469d8338e3..d41b221b5021981775dd6abe4f2d3cc666521bcc 100644 (file)
     <!-- Automated tests.                                                   -->
     <!-- ================================================================== -->
 
-    <target name="tests" depends="ant-tests, testbench-tests, integration-tests">
+    <target name="tests" depends="ant-tests, server-side-tests, testbench-tests, integration-tests">
     </target>
 
+    <target name="server-side-tests" depends="compile-java">
+               <junit printsummary="yes"> 
+                       <classpath> 
+                               <pathelement path="${result-path}/classes" />
+                               <path refid="compile.classpath"/>
+                       </classpath>
+
+                       <batchtest fork="yes">
+                               <fileset dir="tests/src" includes="com/vaadin/tests/server/**/*.java" />
+                       </batchtest>
+               </junit>
+    </target>
     <target name="testbench-tests" depends="init">
         <fail unless="product-file" message="The 'product-file' property must be defined."/>
         <fail unless="package-platform" message="The 'package-platform' property must be defined."/>