ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bart van Kuik <BART.VAN.K...@ORACLE.COM>
Subject Q: e.printStackTrace doesn't show up
Date Wed, 02 Jul 2003 09:31:32 GMT
X-No-Archive: Yes

Hi people,

I have a jUnit test class which contains this:

public class TestMyApi extends TestCase
  public void testSomething()
      throw new NullPointerException();
    catch(Exception e)

And an Ant build file containing this:
<junit printSummary="withOutAndErr">
    <test name="TestMyApi"/>

So running the ant script should ALWAYS print out the stacktrace, right?
Not so. Ant just reports:
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

How can I show the print?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message