You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Scott Brickner <sc...@brickner.net> on 2003/12/29 23:00:22 UTC
Can I suppress the junit output?
How can I fix things so I don't get the 5+ lines of output on the
console for every single testcase?
I really only want to know when a test fails. The xml reports are fine
for when I'm building the site, but 99% of the time I'm building during
new development and just want failing testcases.
In my ant build files, I used to run the junit task with the "brief"
formatter. That's kind of what I'm looking for here.
What are my options?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Can I suppress the junit output?
Posted by Scott Brickner <sc...@brickner.net>.
That doesn't help at all. I'm already using that.
My issue is that for a given class in the test tree I get output like
this:
[junit] Testcase: testSimpleParsing took 0.044 sec
[junit] Testcase: testChildParsing took 0 sec
[junit] Testcase: testAttributeParsing took 0 sec
[junit] Testcase: testCombinedParsing took 0.001 sec
[junit] Running com.flashtalk.verona.directory.DispatcherTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.158 sec
[junit] Testsuite: com.flashtalk.verona.directory.DispatcherTest
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.158 sec
[junit]
That's nine lines in the output, just to tell me it passed the test. The
timing and other details are nice to have in the junit report for the
site, but they're completely useless when I'm doing a build from inside
vim. I want to suppress the output if the test passes and only be
notified of test failures.
Honestly, the output as it's currently generated goes against the spirit
of the whole JUnit test package. A passing testcase should generate *no*
output.
On Tue, 2003-12-30 at 03:06, Emmanuel Venisse wrote:
> You can fork junit with this :
> maven.junit.fork=true
>
> Emmanuel
>
> ----- Original Message -----
> From: "Scott Brickner" <sc...@brickner.net>
> To: <us...@maven.apache.org>
> Sent: Monday, December 29, 2003 11:00 PM
> Subject: Can I suppress the junit output?
>
>
> > How can I fix things so I don't get the 5+ lines of output on the
> > console for every single testcase?
> >
> > I really only want to know when a test fails. The xml reports are fine
> > for when I'm building the site, but 99% of the time I'm building during
> > new development and just want failing testcases.
> >
> > In my ant build files, I used to run the junit task with the "brief"
> > formatter. That's kind of what I'm looking for here.
> >
> > What are my options?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Can I suppress the junit output?
Posted by Emmanuel Venisse <em...@venisse.net>.
You can fork junit with this :
maven.junit.fork=true
Emmanuel
----- Original Message -----
From: "Scott Brickner" <sc...@brickner.net>
To: <us...@maven.apache.org>
Sent: Monday, December 29, 2003 11:00 PM
Subject: Can I suppress the junit output?
> How can I fix things so I don't get the 5+ lines of output on the
> console for every single testcase?
>
> I really only want to know when a test fails. The xml reports are fine
> for when I'm building the site, but 99% of the time I'm building during
> new development and just want failing testcases.
>
> In my ant build files, I used to run the junit task with the "brief"
> formatter. That's kind of what I'm looking for here.
>
> What are my options?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Can I suppress the junit output?
Posted by di...@multitask.com.au.
Scott,
I believe the only way to do this is to tweak the junit plugin.
I'll try it out and see if the output is more acceptable.
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
Scott Brickner <sc...@brickner.net> wrote on 30/12/2003 09:00:22 AM:
> How can I fix things so I don't get the 5+ lines of output on the
> console for every single testcase?
>
> I really only want to know when a test fails. The xml reports are fine
> for when I'm building the site, but 99% of the time I'm building during
> new development and just want failing testcases.
>
> In my ant build files, I used to run the junit task with the "brief"
> formatter. That's kind of what I'm looking for here.
>
> What are my options?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org