Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » how to observe junit tests
how to observe junit tests [message #48489] Fri, 27 February 2009 10:04 Go to next message
sana is currently offline sanaFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I have developed a plugin using eclipse 3.2, and now i want to test it
using junit tests. For that, i have added an extension point in the
plugin.xml file. The listener class implements the ITestRunListener
interface. How can i test that the following extension point is registered
properly.

the plugin.xml entry looks like :

<extension point = " org.eclipse.jdt.junit.TestRunListener">
<testRunListener class = "junitTests.ObserveTests"/>

the listener class looks like:
import org.eclipse.jdt.junit.ITestRunListener;
public class ObserveTests implements ITestRunListener{

public void testFailed(int status, String testId, String testName, String
trace){
System.out.println(testName);
}

---------------------------
thanks for any help,
Re: how to observe junit tests [message #49101 is a reply to message #48489] Wed, 04 March 2009 15:27 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
unknown wrote:
> Hi,
>
> I have developed a plugin using eclipse 3.2, and now i want to test it
> using junit tests. For that, i have added an extension point in the
> plugin.xml file. The listener class implements the ITestRunListener
> interface. How can i test that the following extension point is
> registered properly.
> the plugin.xml entry looks like :
>
> <extension point = " org.eclipse.jdt.junit.TestRunListener">
> <testRunListener class = "junitTests.ObserveTests"/>
>
> the listener class looks like:
> import org.eclipse.jdt.junit.ITestRunListener;
> public class ObserveTests implements ITestRunListener{
>
> public void testFailed(int status, String testId, String testName,
> String trace){
> System.out.println(testName);
> }

If you're using PDE Build to build your plug-ins, maybe this recent blog
post will help you:

http://manuelselva.wordpress.com/2009/03/02/headless-build-f inal-step/

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Re: how to observe junit tests [message #592703 is a reply to message #48489] Wed, 04 March 2009 15:27 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
unknown wrote:
> Hi,
>
> I have developed a plugin using eclipse 3.2, and now i want to test it
> using junit tests. For that, i have added an extension point in the
> plugin.xml file. The listener class implements the ITestRunListener
> interface. How can i test that the following extension point is
> registered properly.
> the plugin.xml entry looks like :
>
> <extension point = " org.eclipse.jdt.junit.TestRunListener">
> <testRunListener class = "junitTests.ObserveTests"/>
>
> the listener class looks like:
> import org.eclipse.jdt.junit.ITestRunListener;
> public class ObserveTests implements ITestRunListener{
>
> public void testFailed(int status, String testId, String testName,
> String trace){
> System.out.println(testName);
> }

If you're using PDE Build to build your plug-ins, maybe this recent blog
post will help you:

http://manuelselva.wordpress.com/2009/03/02/headless-build-f inal-step/

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
Previous Topic:headless build - problems with tmp folder
Next Topic:PDE Export and Debug Info
Goto Forum:
  


Current Time: Thu Apr 18 05:25:24 GMT 2024

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

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

Back to the top