cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/tools/targets test-build.xml
Date Thu, 29 Apr 2004 00:36:06 GMT
joerg       2004/04/28 17:36:06

  Modified:    tools/targets test-build.xml
  Log:
  output test results into files, create a nice junit report (= HTML) out of it;
  no longer "haltonfailure" for the tests (we would not get the report), if we need a failing
build we can use "failureproperty"
  
  Revision  Changes    Path
  1.7       +14 -3     cocoon-2.1/tools/targets/test-build.xml
  
  Index: test-build.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/tools/targets/test-build.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- test-build.xml	8 Mar 2004 06:07:15 -0000	1.6
  +++ test-build.xml	29 Apr 2004 00:36:06 -0000	1.7
  @@ -25,10 +25,15 @@
   
     <!-- Runs JUnit tests -->
     <target name="junit-tests" depends="compile-tests">
  -    <junit printsummary="yes" haltonfailure="yes" fork="yes">
  +    <delete dir="${build.test.output}"/>
  +    <mkdir dir="${build.test.output}"/>
  +    <junit printsummary="yes" fork="yes">
  +      <!--jvmarg value="-Xdebug"/>
  +      <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"/-->
         <classpath refid="test.classpath"/>
  -      <formatter type="plain" usefile="no" />
  -      <batchtest>
  +      <formatter type="plain"/>
  +      <formatter type="xml"/>
  +      <batchtest todir="${build.test.output}">
           <fileset dir="${build.test}">
             <include name="**/*TestCase.class"/>
             <include name="**/*Test.class" />
  @@ -39,6 +44,12 @@
           </fileset>
         </batchtest>
       </junit>
  +    <junitreport todir="${build.test.output}">
  +      <fileset dir="${build.test.output}">
  +       <include name="TEST-*.xml"/>
  +      </fileset>
  +      <report format="frames" todir="${build.test.output}"/>
  +    </junitreport>
     </target>
   
     <!-- Anteater tests  -->
  
  
  

Mime
View raw message