ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ALI,HANEEF (HP-Cupertino,ex1)" <>
Subject Using junit & junitReport
Date Thu, 16 Aug 2001 16:49:47 GMT

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
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" />

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

  </target >        


View raw message