You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Andy Kriger <ak...@greaterthanone.com> on 2003/01/06 20:23:07 UTC
junit task - do not show stacktrace?
When I get a JUnit test failure in Ant, the output includes a stacktrace. Is
there any way to suppress that? I just want to see the summary for the
testsuite and the test case with message line.
thx
---sample output---
[junit] Testsuite: MyTestSuite
[junit] Tests run: 4, Failures: 3, Errors: 0, Time elapsed: 2.09 sec
[junit] Testcase: testInvalidNumber(MyTestClass): FAILED
[junit] unexpected failure
[junit] junit.framework.AssertionFailedError: unexpected failure
[junit] at
com.gto.payflowpro.PfpAbstractTest.executeRequest(PfpAbstractTest.java:113)
[junit] at
com.gto.payflowpro.PfpAbstractTest.testInvalidNumber(PfpAbstractTest.java:80
)
etc...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: junit task - do not show stacktrace?
Posted by Stefan Bodewig <bo...@apache.org>.
On Mon, 6 Jan 2003, Andy Kriger <ak...@greaterthanone.com> wrote:
> When I get a JUnit test failure in Ant, the output includes a
> stacktrace.
This depends on the formatter you use.
> Is there any way to suppress that?
Write a formatter of your own (probably extending the BriefFormatter).
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>