Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using junit eclipse plugin test runner upon request
Using junit eclipse plugin test runner upon request [message #289916] Sat, 13 August 2005 08:26
Eclipse UserFriend
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
Previous Topic:project messed up
Next Topic:Help- add an external .lib library to workspace
Goto Forum:
  


Current Time: Fri Apr 19 15:51:13 GMT 2024

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

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

Back to the top