Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Envoking Junits from a menu (so anyone can run the tests)
Envoking Junits from a menu (so anyone can run the tests) [message #44928] Mon, 05 December 2005 20:39 Go to next message
Eclipse UserFriend
Originally posted by: PlanetTen.comcast.net

I have a Junit plugin and I have created a menu item that I want to use
to envoke the junit tests defined in this plugin.

Currently my menu Action executes the suite by calling something like

TestRunner.run(MySuiteOfTests());

Which uses TestRunner which is a console based junit runner. This works
but no output goes to the junit view... hmmmm.

So..... when I envoked my tests from menu there must be a way to get the
junit view to show and have the output go to this view. Any ideas on
what class or what I need to do to make this happen?

Thanks a million times in advance.
Re: Envoking Junits from a menu (so anyone can run the tests) [message #45019 is a reply to message #44928] Tue, 06 December 2005 14:09 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi PlanetTen,
The JUnit view in Eclipse is part of the JDT project. You may want to
post your question to news://news.eclipse.org/eclipse.tools.jdt.

TPTP does provides a JUnit test type with an associated editor,
execution harness and test log view. See the following for more details:

Help >> Help Contents >> TPTP Tester guide >> JUnit testing with TPTP

http://www.eclipse.org/tptp/ >> Documentation >> TPTP 4.0.0 Introductory
Screencasts >> JUnit Integration

Paul
"PlanetTen" <PlanetTen@comcast.net> wrote in message
news:dn28ia$mmb$2@news.eclipse.org...
> I have a Junit plugin and I have created a menu item that I want to use
> to envoke the junit tests defined in this plugin.
>
> Currently my menu Action executes the suite by calling something like
>
> TestRunner.run(MySuiteOfTests());
>
> Which uses TestRunner which is a console based junit runner. This works
> but no output goes to the junit view... hmmmm.
>
> So..... when I envoked my tests from menu there must be a way to get the
> junit view to show and have the output go to this view. Any ideas on
> what class or what I need to do to make this happen?
>
> Thanks a million times in advance.
Previous Topic:RAServer unable to find pthreads
Next Topic:ClassNotFoundException
Goto Forum:
  


Current Time: Sun Dec 22 06:16:04 GMT 2024

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

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

Back to the top