Now its clear as day:
1) don't call Exception in your test, just
do it
public void testDummy() throws Exception
fyi: all fail() does is throw an exception!
It's all set up to catch those exception for
you and provide a report
2) you don't see your own stack trace because
you haven't enabled output to console in
your JUnit task. Read docs on <junit>
and you'll find how turn on viewing console
output of you test (currently it is being swallowed)
okay, maybe I got something wrong, but here's my
own junit task
<junit printsummary="off">
<formatter type="plain" usefile="false"/>
<formatter type="xml"/> <!-- your shouldn't need this -->
<classpath>
<pathelement path="${java.api.compiled}"/>
<pathelement path="${java.impl.compiled}"/>
<pathelement path="${java.test.compiled}"/>
<path refid="runtimecp"/>
</classpath>
<batchtest todir="${test.reports.dir}">
<fileset dir="${java.test.prepr}">
<include name="**/test/*TestCase.java"/>
<exclude name="**/Abstract*"/>
</fileset>
</batchtest>
</junit>
I've just copied if from Fortress and set up for my own needs.
This task does show the output written via System.out and System.err
-Anton
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]