Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problems running tests with luna platform

Adding just org.hamcrest as an additional test target dep appears to fix the issue with my maven bundle. I am still not sure why this is just a problem with Luna.

Simon

On 17 March 2015 at 09:16, Simon Goodall <simon@xxxxxxxxxxxxxxxxxx> wrote:
Hi Jeff,

The bundle should contain all of the required dependencies so I do not believe this is the problem.Objenesis is both imported and exported. Adding an explicit requirement on org.objenesis to the test target platform from orbit does not help. Perhaps the luna bundles/packages are conflicting with the build in ones?

Thanks,

Simon

On 16 March 2015 at 23:25, Jeff MAURY <jeffmaury@xxxxxxxxxxxxx> wrote:
The problem is that the mockito JAR you are referencing does need the org.objenesis package which is not available on the Luna P2 repo.

Regards
Jeff


On Tue, Mar 17, 2015 at 12:18 AM, Marc-André Laperle <marc-andre.laperle@xxxxxxxxxxxx> wrote:
I don't think you can add dependencies (mockito-all) from maven like that, it has to be an Eclipse plugin. I tried your example and added the mockito from Eclipse Orbit [1] and it works. See attached patch.

[1] http://download.eclipse.org/tools/orbit/downloads/

Hope this helps,
Marc-Andre


From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Simon Goodall [simon@xxxxxxxxxxxxxxxxxx]
Sent: Monday, 16 March 2015 6:23 PM
To: Tycho user list
Subject: [tycho-user] Problems running tests with luna platform

Hi,

I have been trying to migrate my product from a Indigo base to a Luna base. I have things working in Eclipse, but I am having trouble getting my unit tests to run in Tycho. Specifically I seem to be unable to add Mockito (mockito-all obtained from maven central) as a dependency to my test project either as a real plugin or a fragment). Removing the mockito dependency allows the test to pass. Tycho reports a fairly vague bundle is not found exception for my test bundle/fragment. However there does appear to be a number of unresolved capability requirements which I am unsure where they have come from.

Any suggestions on getting this to run? I have attached the error output of the test run and I have uploaded a sample project to github [1]. This can be run with "mvn -X clean integration-test -Pluna"


Thanks,

Simon

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top