ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ALI,HANEEF (HP-Cupertino,ex1)" <haneef_...@hp.com>
Subject Using Junit and JunitReport
Date Fri, 17 Aug 2001 16:43:53 GMT
Hi,

I am trying to use Junit task from build.xml. It is working well if I list
individual test cases. But if I use batchtest , it is not generating report
file.
I have given the target below for your reference. Also whether junitreport
is still
part of optional.jar, if so where can I get the xalan.jar (for xalan1) which
is needed for using that task


<target name="RunJunit">
  <junit printsummary="yes" haltonfailure="no">
      <classpath refid="classpath"/>                        
      <formatter type="xml" />           
<!--
	// This block generates reports
          <test name="junit.samples.SimpleTest" haltonfailure="no"
outfile="result" >
               <formatter type="plain" />
           </test>   
-->

<!--
	// This block executes Junit but doesn't generate report
        <batchtest fork="yes" todir="./" >              
             <fileset dir="./">
                 <include name="junit/**/*Test*.class" />    
              </fileset>
           </batchtest>        
-->

        </junit>
  </target >        

Thanks

Mime
View raw message