Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot failing with Tycho(Tycho can not build test plugin fragments that depend on SWTBot)
SWTBot failing with Tycho [message #801789] Sat, 18 February 2012 23:57 Go to next message
Jay Billings is currently offline Jay BillingsFriend
Messages: 54
Registered: July 2011
Member
I am trying to build my plugins using Maven and Eclipse Tycho. Unfortunately SWTBot causes the test plugin for my RCP client to fail. I have attached the log file (plain text) that shows the problem instead of pasting the text since the message is quite large.

The problem appears to be that SWTBot depends on org.hamcrest instead of org.hamcrest.core. My target includes both org.hamcrest and org.hamcrest.core. This plugin builds and the plain junit tests run successfully.

I followed the instructions at sonatype.org linked at the SWTBot Eclipsepedia entry.

Any thoughts?


Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
Re: SWTBot failing with Tycho [message #817646 is a reply to message #801789] Sat, 10 March 2012 11:57 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 02/19/2012 12:57 AM, Jay Billings wrote:
> I am trying to build my plugins using Maven and Eclipse Tycho. Unfortunately SWTBot causes the test plugin for my RCP client to fail. I have attached the log file (plain text) that shows the problem instead of pasting the text since the message is quite large.
>
> The problem appears to be that SWTBot depends on org.hamcrest instead of org.hamcrest.core. My target includes both org.hamcrest and org.hamcrest.core. This plugin builds and the plain junit tests run successfully.
>
> I followed the instructions at sonatype.org linked at the SWTBot Eclipsepedia entry.
>
> Any thoughts?

Hi there

have you tried to add this?

<dependency>
<!-- explicit dependency is only needed because SWTbot brings
its own hamcrest bundle which conflicts with the one from junit in the
eclipse
platform -->
<type>p2-installable-unit</type>
<artifactId>org.hamcrest</artifactId>
<version>0.0.0</version>
</dependency>

it's taken from here

https://github.com/jsievers/tycho-demo/blob/master/tychodemo.swtbot.tests/pom.xml

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:Hyperlink click
Next Topic:swtbot tests with tycho and jenkins
Goto Forum:
  


Current Time: Fri Apr 26 12:36:31 GMT 2024

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

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

Back to the top