how to observe junit tests [message #48489] |
Fri, 27 February 2009 05:04  |
Eclipse User |
|
|
|
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 10:27  |
Eclipse User |
|
|
|
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 10:27  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.06479 seconds