Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » "Run As > JUnit Test" on inherited test method
"Run As > JUnit Test" on inherited test method [message #141564] Tue, 31 March 2009 10:43 Go to next message
J. Lewis Muir is currently offline J. Lewis Muir
Messages: 3
Registered: July 2009
Junior Member
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 #141606 is a reply to message #141564] Wed, 01 April 2009 06:34 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Lewis,
I would suggesting posting this question to the JDT news group. This
news group is the Test and Performance Tools Platform, and although we
provide JUnit test support
( http://help.eclipse.org/help33/topic/org.eclipse.hyades.test .doc.user/concepts/cjunitintro.htm
but only 3.8.x support, so no annotations), you are referring to the JDT
JUnit runner.

Paul
"J. Lewis Muir" <muir@pobox.com> wrote in message
news:a8a552ded77c6cdd0dd2b36dfa26ad6b$1@www.eclipse.org...
>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
>
>
Previous Topic:How to trace with TPTP ?
Next Topic:Can't profile geronimo 2.1.3 in eclipse
Goto Forum:
  


Current Time: Fri Jul 25 14:17:39 EDT 2014

Powered by FUDForum. Page generated in 0.02785 seconds