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