"Run As > JUnit Test" on inherited test method [message #259211] |
Tue, 24 March 2009 17:47  |
Eclipse User |
|
|
|
I have a test class, AdscTest, that is a subclass of an abstract test
class, DriverTest. Both contain test case methods marked with the @Test
annotation.
I can right-click on AdscTest in the Types view of the Java Browsing
perspective and choose "Run As > JUnit Test" and all the test methods with
the @Test annotation, including those in DriverTest, will be run. I can
also right-click on any AdscTest test method in the Members view and
choose "Run As > JUnit Test" and just that method will be run.
However, I can't figure out a way to do a "Run As > JUnit Test" on a test
method inherited from DriverTest. I tried opening AdscTest in the
Hierarchy view and selecting "Show All Inherited Members." I
right-clicked on an inherited test method, but the "Run As" menu only
contains "Run Configurations...." Is there a way to do this?
I'm running Eclipse 3.4.2 and have installed all updates.
Thanks,
Lewis
|
|
|
Re: "Run As > JUnit Test" on inherited test method [message #259255 is a reply to message #259211] |
Fri, 27 March 2009 04:18  |
Eclipse User |
|
|
|
Originally posted by: mauro.molinari.cardinis.com
J. Lewis Muir ha scritto:
> However, I can't figure out a way to do a "Run As > JUnit Test" on a
> test method inherited from DriverTest. I tried opening AdscTest in the
> Hierarchy view and selecting "Show All Inherited Members." I
> right-clicked on an inherited test method, but the "Run As" menu only
> contains "Run Configurations...." Is there a way to do this?
>
> I'm running Eclipse 3.4.2 and have installed all updates.
This is interesting... however I fear it is not possibile... You may try
to open an enhancement request...
Mauro.
|
|
|
Powered by
FUDForum. Page generated in 0.02237 seconds