Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-surefire and testng

Please provide small complete standalone example I can "mvn test" and
see the exact failure you get? Also explain what you believe should
happen to make the error go away.

--
Regards,
Igor

On 1/23/2014, 10:12, Tracy, Benjamin J wrote:
Thanks for taking the time.  I've attached a few pom files:  the parent, the test fragment and the target platform pom.   It's not a tiny example, but it's still pretty general.

Thanks in advance!
Ben


________________________________________
From: tycho-user-bounces@xxxxxxxxxxx [tycho-user-bounces@xxxxxxxxxxx] on behalf of Igor Fedorenko [igor@xxxxxxxxxxxxxx]
Sent: Thursday, January 23, 2014 9:57 AM
To: tycho-user@xxxxxxxxxxx
Subject: Re: [tycho-user] tycho-surefire and testng

Tycho is supposed to map OSGi dependencies back to pom.xml model, so at
least theoretically is should be possible to use "plain"
maven-surefire-plugin for Tycho projects. Whether this will work in
practice depends on your project structure and dependencies your project
uses. If you can provide a small standalone example that shows your
setup I may be able to provide more specific recommendation.

--
Regards,
Igor

On 1/23/2014, 9:48, Tracy, Benjamin J wrote:
Are you sure you get up to the correct lifecycle phase? Running mvn test
will not do, as the tycho surefire plugin hooks into the
integration-test phase by default:
http://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html

Thanks for your quick response!

I noticed that the tycho-surefire runs at integration test.  I had given
up on that plugin because there was no provider hint for TestNG (which
led me to believe what I had read that TestNG was not supported) and
when I give the JUnit 4.7 provider hint, I get an exception
(ClassNotFound on OsgiEnabledJUintCoreProvider).  So I had added
"<skip>true</skip>" to the tycho-surefire so that I could try to get
TestNG working the regular way and that isn't working for me either.

What am I supposed to do to get TestNG to work?

Ben


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top