Using junit eclipse plugin test runner upon request [message #289916] |
Sat, 13 August 2005 08:26 |
Eclipse User |
|
|
|
Originally posted by: joseph_gamal.hotmail.com
Hi all
I sent this mail to "eclipse.tools.jdt" , but no one answer , can any one
here help me??
I want to make a specific task with junit plugin test , but i don't know how
to do it.
All what i want to do , is to launch the workbench , and then interact with
a view i have , and then press a button somewhere (in my view , or may be in
eclipse junit runner view) , and at this point of time junit plugin test
should start running the test suite i have. Is this possible ?
I did the previous task using swing junit runner , but I don't know how to
do this with eclipse runner , or may be there is a better solution.
Here's what i did with swing junit runner:
1- Register an IEditorActionDelegate with extenstion point
org.eclipse.ui.popupMenus
2- in its run method , perform run the following code:
String[] args = { "-noloading", "com.abc.mySuiteClass"};
junit.swingui.TestRunner runner = new junit.swingui.TestRunner();
runner.start(args);
so , when i selected this action in the pop menu , the swing test runner
dialog is launched , and the test suite is tested.
Thanks
Joseph
|
|
|
Powered by
FUDForum. Page generated in 0.02141 seconds