Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » "Run As > JUnit Test" on inherited test method
"Run As > JUnit Test" on inherited test method [message #259211] Tue, 24 March 2009 17:47 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Java build path problem
Next Topic:Code Assist on Method Calls - How to get the target variable?
Goto Forum:
  


Current Time: Mon Apr 21 02:13:54 EDT 2025

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

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

Back to the top