Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] How to add JUnit RunListener to Tycho Surefire Plugin

More recent version of Tycho has the tycho-surefire-plugin relying on the maven-surefire-plugin. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=386481 . This is an encouraging step that may make Tycho closer from supporting additional RunListeners. Maybe the surefireProperties element https://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#surefireProperties is the good place where to specify a listener...

There is no guarantee it works (I didn't try it) and even if the property is correctly passed to JUnit, I foresee some difficulties with classpath that might require advanced Eclipse/OSGi classloading patterns; but that's definitely something you should look at. Nothing is impossible ;)
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top