Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Avoid dependencies for headless tests
Avoid dependencies for headless tests [message #659672] Tue, 15 March 2011 04:05 Go to next message
Ovidio Mallo is currently offline Ovidio Mallo
Messages: 35
Registered: July 2009
Member
Hi all,

when trying to run SWTBot tests headlessly as described e.g. in

http://richardadams606blog.blogspot.com/2010/04/headless-swt bot-testing-for-eclipse-rcp.html

it seems that I have to include the following features in my product in order to
get the tests running:
org.eclipse.platform
org.eclipse.pde
org.eclipse.jdt

Thereby, those features introduce a lot of new dependencies and lead to the
problem that the plugins included in those features contribute UI elements like
menu and toolbar actions to the RCP application under test which is undesirable in
our case.

I wanted to ask whether those features are strictly necessary when running SWTBot
tests headlessly or whether it can be avoided to include all of them?

Thanks in advance for any help!

Kind regards,
Ovidio
Re: Avoid dependencies for headless tests [message #659677 is a reply to message #659672] Tue, 15 March 2011 04:35 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 738
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi,

You'd rather create your own test feature that includes SWTBot, its deps, and your tests. You'll have better control on the bundles you include.
See http://www.bonitasoft.org/blog/eclipse/swtbot-my-new-friend/

HTH

--
Mickael Istria -- BonitaSoft S.A.
http://www.bonitasoft.com/products/BPM_download.php
Re: Avoid dependencies for headless tests [message #660113 is a reply to message #659677] Wed, 16 March 2011 17:30 Go to previous message
Ovidio Mallo is currently offline Ovidio Mallo
Messages: 35
Registered: July 2009
Member
Mickael,

thanks a lot for the hint! Creating a separate feature which lists the
individual bundles or even creating a product definition which directly
lists the required bundles indeed works fine.

Thanks again for your help & kind regards,
Ovidio


On 15.03.2011 09:35, Mickael Istria wrote:
> Hi,
>
> You'd rather create your own test feature that includes SWTBot, its
> deps, and your tests. You'll have better control on the bundles you
> include.
> See http://www.bonitasoft.org/blog/eclipse/swtbot-my-new-friend/
>
> HTH
>
Previous Topic:Next button remains disabled
Next Topic:delete the topic
Goto Forum:
  


Current Time: Sat Aug 02 00:56:41 EDT 2014

Powered by FUDForum. Page generated in 0.01419 seconds