Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Headless JUnit Plug-In Tests
Headless JUnit Plug-In Tests [message #603924] Mon, 04 January 2010 16:28 Go to next message
Marcel Hoetter is currently offline Marcel HoetterFriend
Messages: 28
Registered: July 2009
Junior Member
Hello newsgroup.

We have a growing number of JUnit-Plug-In tests for components of our software that do not need the
UI to run. These tests could be run with the "headless" application option if we had the
org.eclipse.ui.ide plug-in in our target platform.
Unfortunately, this is not the case. Right now the tests are instead run with dedicated stipped down
Eclipse applications. I already tried to modify the Application class so it does not call the
PlatformUI.createAndRunWorkbench method. But apparently the JUnit tests are not executed then.
What do i have to do in the Application.start method to get the tests run without creating
a workbench?


Re: Headless JUnit Plug-In Tests [message #604303 is a reply to message #603924] Wed, 20 January 2010 21:16 Go to previous message
martin is currently offline martinFriend
Messages: 12
Registered: July 2009
Junior Member
Hi Marcel,

still alive and working on RCP??? :d

Headless RCP Testing is a Pain in the Ass (well, sometimes...)

By Headless testing, you mean within an Headless Build outside the IDE or within the Beast? :roll:
How does your setup look like? Are your tests defined in separate Fragments?

In my experience, you cannot modify the application-class, because your tests propably may need a running workbench, I would rather recommend using a separate target-plattform for your unit-tests.

We implemented this once and that worked like a charm!

Previous Topic:Headless JUnit Plug-In Tests
Next Topic:Large Text Files Editor
Goto Forum:

Current Time: Wed May 19 01:03:03 GMT 2021

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

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

Back to the top