]> source.dussan.org Git - poi.git/commitdiff
bringing back the ability to run one test at a time
authorAvik Sengupta <avik@apache.org>
Sun, 4 May 2003 09:17:06 +0000 (09:17 +0000)
committerAvik Sengupta <avik@apache.org>
Sun, 4 May 2003 09:17:06 +0000 (09:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353080 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 5a8fb6f0f0b56273138d1c9401051fe7da09f188..4ac9de248ac070321daa245957e304fa5f90cc33 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -12,7 +12,7 @@
 
     LIBRARY         LOCATION
     =======         ========
-    junit           http://www.ibiblio.org/maven/junit/jars/
+    junit(3.8+)     http://www.ibiblio.org/maven/junit/jars/
     xerces          http://www.ibiblio.org/maven/xerces/jars/
     jdepend         http://www.ibiblio.org/maven/jdepend/jars/
 
         <delete file="${main.testokfile}"/>
         <antcall target="-test-main-write-testfile"/>
     </target>
+    
+    <target name="single-test" depends="compile-main">
+       <junit printsummary="no" showoutput="true" filtertrace="no" fork="no" haltonfailure="${halt.on.test.failure}" failureproperty="main.test.failed" >
+       <classpath>
+                <path refid="main.classpath"/>
+                <pathelement location="${main.output.dir}"/>
+                <pathelement location="${main.output.test.dir}"/>
+                <pathelement location="${junit.jar1.dir}"/>
+            </classpath>
+           <sysproperty key="HSSF.testdata.path" value="${main.src.test}/org/apache/poi/hssf/data"/>
+            <sysproperty key="HPSF.testdata.path" value="${main.src.test}/org/apache/poi/hpsf/data"/>
+            <formatter type="plain" usefile="no"/>
+            <formatter type="xml"/>
+           <test name="${testcase}" />
+       </junit>
+    </target>
 
     <target name="-test-main-write-testfile" unless="main.test.failed">
         <echo file="${main.testokfile}" append="false" message="testok"/>