Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Executing just one test method and not all of them
Executing just one test method and not all of them [message #272537] Thu, 23 September 2004 06:49 Go to next message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.de

We have a JUnit TestCase which contains many testXyz methods.

But often we just want to execute one of the textXyz methods and not all of
them.

Of course we could comment all the tests we don't want to execute except the
one we want to execute or prefix the method name like _testXyz in order not
to be executed.

But thats a little bit too much work in our eyes.

So our question is if it is supported by Eclipse 3 to just run one test
method in a very easy way?
Re: Executing just one test method and not all of them [message #272693 is a reply to message #272537] Sat, 25 September 2004 21:34 Go to previous messageGo to next message
Erich Gamma is currently offline Erich GammaFriend
Messages: 20
Registered: July 2009
Junior Member
There is an easier way... select the test method in the outline or package
explorer and execute Run>JUnit Test from the context menu or the run button
in the toolbar.

--erich

"Hans Schw
Re: Executing just one test method and not all of them [message #272726 is a reply to message #272693] Mon, 27 September 2004 08:22 Go to previous message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.de

Thank you! This works great. I didn't knew that it can be done this way.


"Erich Gamma" <erich_gamma@ch.ibm.com> schrieb im Newsbeitrag
news:cj4o1l$8a7$1@eclipse.org...
> There is an easier way... select the test method in the outline or package
> explorer and execute Run>JUnit Test from the context menu or the run
button
> in the toolbar.
>
> --erich
>
> "Hans Schw
Previous Topic:Can't see plugins for 3.0 (3.0.1)
Next Topic:Ternary Operators + Coloring Patterns
Goto Forum:
  


Current Time: Thu Jul 25 22:36:27 GMT 2024

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

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

Back to the top