Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Run all unittests of current workspace?
icon5.gif  Run all unittests of current workspace? [message #646978] Mon, 03 January 2011 18:16 Go to next message
Clemens  is currently offline Clemens Friend
Messages: 3
Registered: January 2011
Junior Member
Does Eclipse support running all unit tests of the current workspace in a single run?

If not "out-of-the-box", does TPTP help ?
Re: Run all unittests of current workspace? [message #647022 is a reply to message #646978] Tue, 04 January 2011 05:07 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 03/01/11 11:46 PM, Clemens wrote:
> Does Eclipse support running all unit tests of the current workspace in
> a single run?
>
> If not "out-of-the-box",
> http://www.eclipse.org/forums/index.php?t=msg&th=202483& amp;start=0&S=a017bfb1c922a3dd2a35441c8b155a17
> ?
>

Eclipse doesn't support out-of-the-box. But you can use the testRunner
from the Platform UI Incubator. See details
at:http://wiki.eclipse.org/Platform_UI/Build_Submission#Runn ing_the_Tests

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Run all unittests of current workspace? [message #647032 is a reply to message #647022] Tue, 04 January 2011 07:45 Go to previous message
Clemens  is currently offline Clemens Friend
Messages: 3
Registered: January 2011
Junior Member
thanks for this hint/advice.
As mentioned in the wiki, the TestRunner "will run *every* JUnit Plugin tests available". What do I need to change in TestsLauncherJob-class in order to not run "JUnit Plugin tests" but "JUnit tests"?

the lookup code is as follows:
...
ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType junitLaunch = launchManager.getLaunchConfigurationType("org.eclipse.pde.ui.JunitLaunchConfig");
ILaunchConfiguration[] launchConfigurations;
MultiStatus testStatus = new MultiStatus(Activator.PLUGIN_ID, 0, "Test results", null);
try {
    launchConfigurations = launchManager.getLaunchConfigurations(junitLaunch);
...


-Clemens
Previous Topic:Project Specific Classpath Container
Next Topic:How to create a IJavaProject from the existing project in the Eclipse workspace
Goto Forum:
  


Current Time: Fri Apr 26 08:23:46 GMT 2024

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

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

Back to the top