Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Multiple testclass invocations per plugin


After considerable pain attempting to empathize with magic nothing happenings, I can now be quite confident that while the correct answer is indeed use maven-surefire-plugin to run standalone tests, a further correct answer is that it is not possible to run both maven-surefire-plugin and tycho-surefire-plugin together. tycho-surefire-plugin won't run for a "jar" packaging and an "eclipse-test-plugin" packaging for tycho-surefire-plugin disrupts the maven functionality.

Repro on:


Ed Willink

On 16/10/2017 09:10, Aurélien Pupier wrote:

Mickaël Istria pointed me to this thread mail I just registered to the mailing-list and so not sure that this mail will be added to the current thread.

I can give some hints for one of the issue mentioned:

"For a JUnit configuration, I do not want OSGI to start. (useUIHarness=false still starts OSGI). I cannot see how to do this with the tycho-surefire-plugin; seems contrary to its philosophy; providing non-Eclipse functionality within an Eclipse added value.

So I presume I should revert to the maven-surefire-plugin, but it appears that the tycho-surefire-plugin subverts its functionality. I don't think I have succeeded in getting maven-surefire-plugin to run any tests. I thought I had but that was just a mega-confusion caused by the helpful "default-test"; the kind of help that I normally associate with Microsoft tools."

I take the opportunity of this discussion to point to a presentation (video, slides) I provided at an EclipseCon explaining why using tests without launching OSGi is really a good thing for some unit tests, you will also see some alternatives to use maven-surefire-plugin for Eclipse tests.





Red Hat France

apupier@xxxxxxxxxx    IM: apupier

tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit


Back to the top