ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: JUnitReport
Date Tue, 13 May 2003 21:29:56 GMT

Yes.  Here is what mine look like....

<target name="test" depends="compile.test"
         description="Runs JUnit tests" >

     <mkdir dir="${unit.test.home}" />
     <mkdir dir="${unit.test.report.home}" />
     <junit dir="${unit.test.home}" printsummary="yes" haltonfailure="no" 
fork="yes" >
         <classpath refid="build.test.classpath" />
         <sysproperty
             key="${log4j.system.variable.name}"
             value="${log4j.log.path}" />
         <!--<sysproperty
             key="log4j.configuration"
             value="file:./log4j.xml" />-->
         <formatter
             type="xml"
             usefile="yes" />
         <batchtest todir="${unit.test.report.home}" >
             <fileset refid="unit.test.files" />
         </batchtest>
     </junit>
     <antcall target="-test.report.html" />

</target>

<target name="-test.report.html" >
         <!--description="Convert the junit xml files to html" -->

     <junitreport todir="${unit.test.report.home}" >
         <fileset dir="${unit.test.report.home}" >
             <include name="TEST-*.xml" />
         </fileset>
         <report
             format="frames"
             todir="${unit.test.report.home}/html" />
     </junitreport>

</target>

Jake

At 01:59 PM 5/13/2003 -0700, you wrote:
>Anyone had any experience with running JUnit and JUnitReport to build a 
>nice report from the unit tests output files? Does it work, is it easy 
>enough to do with XSL sheets?
>
>Thanks.
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003
>
>
>
>*********************************************************** The 
>information contained in this e-mail message may be confidential 
>and  protected from disclosure. If you are not the intended recipient, any 
>dissemination, distribution or copying is strictly prohibited. If you 
>think that you have received this e-mail message in error, please e-mail 
>the sender at exchangeadmins@marketron.com 
>***********************************************************
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message