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()
  {
    try
    {
      throw new NullPointerException();
    }
    catch(Exception e)
    {
      e.printStackTrace();
    }
  }
}

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

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?

Bart
 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message