Deprectated Extension Point org.eclipse.jdt.junit.testRunListeners

View: New views
3 Messages — Rating Filter:   Alert me  

Deprectated Extension Point org.eclipse.jdt.junit.testRunListeners

by Tim Felgentreff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Eclipse (and various online sources) tell me the extension point
org.eclipse.jdt.junit.testRunListeners is deprecated.
After some hours of research I still haven't found a suitable
alternative.
I need an additional view on the results of JUnit runs that offers
some actions depending on the test results. How would I go about
doing that with current JUnit4?
The @RunWith annotation is unsuitable for my situation, as I need
to run unit tests not written by myself on different systems with
different plug-ins.

--
Regards,
Tim


Re: Deprectated Extension Point org.eclipse.jdt.junit.testRunListeners

by brettddaniel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tim,

It is not necessary to implement the extension point.  Instead, you can
add listeners directly to JUnitCore in your Plugin's start method:

public class YourPlugin extends Plugin {
     ...
     public void start(BundleContext context) throws Exception {
         ...
         JUnitCore.addTestRunListener(new YourListener());
     }
     ...
}

public class YourListener extends TestRunListener {
     ...
}

Brett

Tim Felgentreff wrote:

> Eclipse (and various online sources) tell me the extension point
> org.eclipse.jdt.junit.testRunListeners is deprecated.
> After some hours of research I still haven't found a suitable
> alternative.
> I need an additional view on the results of JUnit runs that offers
> some actions depending on the test results. How would I go about
> doing that with current JUnit4?
> The @RunWith annotation is unsuitable for my situation, as I need
> to run unit tests not written by myself on different systems with
> different plug-ins.
>
> --
> Regards,
> Tim
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>

RE: Deprectated Extension Point org.eclipse.jdt.junit.testRunListeners

by kentb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You are now supposed to add test run listeners dynamically. Call
org.eclipse.jdt.junit.JUnitCore.addTestRunListener().
 
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.isv/ref
erence/api/org/eclipse/jdt/junit/JUnitCore.html
 
Kent

  _____  

From: junit@... [mailto:junit@...] On Behalf Of Tim
Felgentreff
Sent: Thursday, October 08, 2009 5:46 AM
To: junit@...
Subject: [junit] Deprectated Extension Point
org.eclipse.jdt.junit.testRunListeners


 

Eclipse (and various online sources) tell me the extension point
org.eclipse.jdt.junit.testRunListeners is deprecated.
After some hours of research I still haven't found a suitable
alternative.
I need an additional view on the results of JUnit runs that offers
some actions depending on the test results. How would I go about
doing that with current JUnit4?
The @RunWith annotation is unsuitable for my situation, as I need
to run unit tests not written by myself on different systems with
different plug-ins.

--
Regards,
Tim






[Non-text portions of this message have been removed]