ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Royston McNeill" <roys...@pressroom.com>
Subject RE: Junit output file redirection
Date Sat, 24 Feb 2001 15:23:52 GMT
Give this a try...


  <target name="runtest">
    <junit printsummary="yes" fork="no" haltonfailure="no">
       <formatter type="xml" />
       <classpath>
           <!-- INCLUDE BUILD DIR PATH FOR TEST RUN -->
           <pathelement location="${test.dir}" />
           <pathelement path="${java.class.path}" />
           <pathelement path="build/testcases" />
           <pathelement path="${build.dir}" />
       </classpath>
       <test name="FileSystemTest" outfile="${test.dir}/TEST" />
    </junit>
  </target>

This will place the output file, which is in the cse an XML file, into the
test directory as a file name "TEST."
Hope this helps.

-----Original Message-----
From: Spencer A Marks [mailto:smarks@digisolutions.com]
Sent: Friday, February 23, 2001 7:00 PM
To: ant-user@jakarta.apache.org
Subject: Junit output file redirection


It seems like the only place the JUnit taskdef will write its output (using
one of
the default formatters) is in the base directory of the project. Is
there a way to specify a different directory?

Thanks.


Mime
View raw message