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

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



Back to the top