You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Phillip Lord <p....@russet.org.uk> on 2002/06/12 13:34:20 UTC
JUnit task with exceptions to standard out
I'm a little confused about the many options in the JUnit task. I'm
currently using
<!-- Test the classes -->
<target name="test" depends="compile">
<mkdir dir="${tmp}"/>
<junit printsummary="on" showoutput="yes">
<classpath path="${classes}"/>
<batchtest todir="${tmp}" >
<fileset dir="${src}">
<include name="**/*BuildTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
I've also tried printsummary to "withOutAndErr". What I get is this...
test:
Running ListBuildTest
Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
TEST ListBuildTest FAILED
What I really want is the single line summary, and failure exceptions
to come to standard out. I'm running ant within emacs, and I would
like to have it parse output and provide me with jump to errors for
the test classes, as I can for the compile.
Does anyone have any advice?
Phil
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: JUnit task with exceptions to standard out
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 12 Jun 2002, Phillip Lord <p....@russet.org.uk> wrote:
> What I really want is the single line summary, and failure
> exceptions to come to standard out.
I think this is what the "brief" formatter in 1.5beta* does.
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>