commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tobr...@apache.org
Subject cvs commit: jakarta-commons-sandbox/math build.xml
Date Sun, 18 May 2003 00:55:19 GMT
tobrien     2003/05/17 17:55:19

  Modified:    math     build.xml
  Log:
  Altered the build script to use batch test instead of running
  a suite.  The advantage of this is that when new tests are added to the
  project a TestSuite class does not need to updated.
  
  All classes *Test.java are included, and *AbstractTest.java are excluded.
  
  Revision  Changes    Path
  1.3       +16 -12    jakarta-commons-sandbox/math/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/math/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	12 May 2003 19:02:11 -0000	1.2
  +++ build.xml	18 May 2003 00:55:18 -0000	1.3
  @@ -114,6 +114,7 @@
       <mkdir dir="${build.home}/classes"/>
       <mkdir dir="${build.home}/conf"/>
       <mkdir dir="${build.home}/tests"/>
  +    <mkdir dir="${build.home}/test-reports"/>
     </target>
   
   
  @@ -222,19 +223,22 @@
   <!-- ========== Unit Test Targets ========================================= -->
   
   
  -  <target name="test"  depends="compile.tests,
  -                                test.math"
  -   description="Run all unit test cases">
  -  </target>
  +  <!-- Run all the JUnit Tests -->
  +  <target name="test" depends="compile.tests" description="Compiles and runs unit test
cases">
  +    <record name="${build.home}/test-output.txt" append="no" action="start"/>
  +    <junit printsummary="yes" haltonfailure="yes">
  +      <classpath refid="test.classpath"/>
   
  +      <formatter type="plain"/>
   
  -  <target name="test.math" depends="compile.tests">
  -    <echo message="Running math tests ..."/>
  -    <java classname="${test.runner}" fork="yes"
  -        failonerror="${test.failonerror}">
  -      <arg value="org.apache.commons.math.MathTestSuite"/>
  -      <classpath refid="test.classpath"/>
  -    </java>
  +      <batchtest fork="yes" todir="${build.home}/test-reports">
  +        <fileset dir="${test.home}">
  +          <include name="**/*Test.java"/>
  +          <exclude name="**/*AbstractTest.java"/>
  +        </fileset>
  +      </batchtest>
  +    </junit>
  +    <record name="${build.home}/test-output.txt" action="stop"/>
     </target>
   
   </project>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message