Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Junit output
Junit output [message #45714] Fri, 30 May 2003 18:25 Go to next message
Eclipse UserFriend
Originally posted by: sacha.global-village.net

Hello all,

I'm trying to debug some Junit tests but I cannot find any way to view the
actual output of a Junit
test run (short of running as a normal Java application with the textui).
Does anyone know how
to tell the Junit plugin to write the output from a run to the console or
a file?

Thanks,


sacha
Re: Junit output [message #46610 is a reply to message #45714] Mon, 02 June 2003 08:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

it's in the console view. Maybe you have to open that. Btw: the contents
remain there even if you close the view.

robert

"Sacha Mallais" <sacha@global-village.net> schrieb im Newsbeitrag
news:bb8lpl$ilq$1@rogue.oti.com...
> Hello all,
>
> I'm trying to debug some Junit tests but I cannot find any way to view
the
> actual output of a Junit
> test run (short of running as a normal Java application with the
textui).
> Does anyone know how
> to tell the Junit plugin to write the output from a run to the console
or
> a file?
>
> Thanks,
>
>
> sacha
>
Re: Junit output [message #48083 is a reply to message #46610] Tue, 03 June 2003 23:05 Go to previous messageGo to next message
Eclipse UserFriend
Robert,

When I use the Junit plugin, I only get stderr in the Console.

Sacha,

Are you using the text for exception backtraces, or logging statements,
or for some other reason?

David Saff

Robert Klemme wrote:
> it's in the console view. Maybe you have to open that. Btw: the contents
> remain there even if you close the view.
>
> robert
>
> "Sacha Mallais" <sacha@global-village.net> schrieb im Newsbeitrag
> news:bb8lpl$ilq$1@rogue.oti.com...
>
>>Hello all,
>>
>>I'm trying to debug some Junit tests but I cannot find any way to view
>
> the
>
>>actual output of a Junit
>>test run (short of running as a normal Java application with the
>
> textui).
>
>>Does anyone know how
>>to tell the Junit plugin to write the output from a run to the console
>
> or
>
>>a file?
>>
>>Thanks,
>>
>>
>>sacha
>>
>
>
Re: Junit output [message #48645 is a reply to message #48083] Wed, 04 June 2003 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"David Saff" <saff@mit.edu> schrieb im Newsbeitrag
news:bbjnkq$rgj$1@rogue.oti.com...
> Robert,
>
> When I use the Junit plugin, I only get stderr in the Console.

You sure? I get System.out and System.err outputs in the console.

robert

>
> Sacha,
>
> Are you using the text for exception backtraces, or logging statements,
> or for some other reason?
>
> David Saff
>
> Robert Klemme wrote:
> > it's in the console view. Maybe you have to open that. Btw: the
contents
> > remain there even if you close the view.
> >
> > robert
> >
> > "Sacha Mallais" <sacha@global-village.net> schrieb im Newsbeitrag
> > news:bb8lpl$ilq$1@rogue.oti.com...
> >
> >>Hello all,
> >>
> >>I'm trying to debug some Junit tests but I cannot find any way to view
> >
> > the
> >
> >>actual output of a Junit
> >>test run (short of running as a normal Java application with the
> >
> > textui).
> >
> >>Does anyone know how
> >>to tell the Junit plugin to write the output from a run to the console
> >
> > or
> >
> >>a file?
> >>
> >>Thanks,
> >>
> >>
> >>sacha
> >>
> >
> >
>
Re: Junit output [message #48883 is a reply to message #48645] Wed, 04 June 2003 11:19 Go to previous messageGo to next message
Eclipse UserFriend
Robert Klemme wrote:
> "David Saff" <saff@mit.edu> schrieb im Newsbeitrag
> news:bbjnkq$rgj$1@rogue.oti.com...
>
>>Robert,
>>
>>When I use the Junit plugin, I only get stderr in the Console.
>
>
> You sure? I get System.out and System.err outputs in the console.
>
> robert

Sorry, it turns out I misspoke. I get System.out and System.err from
any debugging prints I've added to the code, but not the output that you
would expect from the textui TestRunner from Junit, which seemed to be
what the original poster wanted.

David Saff
Re: Junit output [message #49772 is a reply to message #48883] Thu, 05 June 2003 03:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"David Saff" <saff@mit.edu> schrieb im Newsbeitrag
news:bbl2m9$54p$1@rogue.oti.com...
> Robert Klemme wrote:
> > "David Saff" <saff@mit.edu> schrieb im Newsbeitrag
> > news:bbjnkq$rgj$1@rogue.oti.com...
> >
> >>Robert,
> >>
> >>When I use the Junit plugin, I only get stderr in the Console.
> >
> >
> > You sure? I get System.out and System.err outputs in the console.
> >
> > robert
>
> Sorry, it turns out I misspoke. I get System.out and System.err from
> any debugging prints I've added to the code, but not the output that you
> would expect from the textui TestRunner from Junit, which seemed to be
> what the original poster wanted.

Oh. But why would I want to use the text UI test runner from within
eclipse? The graphical version is just fine - IMHO.

robert
Re: Junit output [message #56493 is a reply to message #49772] Fri, 13 June 2003 10:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bodo.t.genion.de

no, unfortunately it doesn't evaluate everything.
especially if you use this :
http://www.clarkware.com/software/JUnitPerf.html,
a junit extension. the eclipse junit plugin is not able to handle
TimedTests correctly. therefore you need to use the textui of these
testcases, right?
bodo





Robert Klemme schrieb:
> "David Saff" <saff@mit.edu> schrieb im Newsbeitrag
> news:bbl2m9$54p$1@rogue.oti.com...
>
>>Robert Klemme wrote:
>>
>>>"David Saff" <saff@mit.edu> schrieb im Newsbeitrag
>>>news:bbjnkq$rgj$1@rogue.oti.com...
>>>
>>>
>>>>Robert,
>>>>
>>>>When I use the Junit plugin, I only get stderr in the Console.
>>>
>>>
>>>You sure? I get System.out and System.err outputs in the console.
>>>
>>> robert
>>
>>Sorry, it turns out I misspoke. I get System.out and System.err from
>>any debugging prints I've added to the code, but not the output that you
>>would expect from the textui TestRunner from Junit, which seemed to be
>>what the original poster wanted.
>
>
> Oh. But why would I want to use the text UI test runner from within
> eclipse? The graphical version is just fine - IMHO.
>
> robert
>
Re: Junit output [message #61677 is a reply to message #56493] Thu, 19 June 2003 07:18 Go to previous message
Eclipse UserFriend
Can you please file a bug report against JDT UI describing the problems when
using JUnitPerf.

--erich

"Bodo" <bodo.t@genion.de> wrote in message
news:3EE9DBEF.6080001@genion.de...
> no, unfortunately it doesn't evaluate everything.
> especially if you use this :
> http://www.clarkware.com/software/JUnitPerf.html,
> a junit extension. the eclipse junit plugin is not able to handle
> TimedTests correctly. therefore you need to use the textui of these
> testcases, right?
> bodo
>
>
>
>
>
> Robert Klemme schrieb:
> > "David Saff" <saff@mit.edu> schrieb im Newsbeitrag
> > news:bbl2m9$54p$1@rogue.oti.com...
> >
> >>Robert Klemme wrote:
> >>
> >>>"David Saff" <saff@mit.edu> schrieb im Newsbeitrag
> >>>news:bbjnkq$rgj$1@rogue.oti.com...
> >>>
> >>>
> >>>>Robert,
> >>>>
> >>>>When I use the Junit plugin, I only get stderr in the Console.
> >>>
> >>>
> >>>You sure? I get System.out and System.err outputs in the console.
> >>>
> >>> robert
> >>
> >>Sorry, it turns out I misspoke. I get System.out and System.err from
> >>any debugging prints I've added to the code, but not the output that you
> >>would expect from the textui TestRunner from Junit, which seemed to be
> >>what the original poster wanted.
> >
> >
> > Oh. But why would I want to use the text UI test runner from within
> > eclipse? The graphical version is just fine - IMHO.
> >
> > robert
> >
>
Previous Topic:Is it a bug? Help me please
Next Topic:Profiler Plugin and Rhino Problem
Goto Forum:
  


Current Time: Sat Jul 12 21:03:34 EDT 2025

Powered by FUDForum. Page generated in 0.04494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top