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

try https://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#providerProperties

(never tried this though)

as Mickael you also have to make sure listener classes can actually be loaded in OSGi, so not sure if this will work.

Jan

> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
> On Behalf Of Henning
> Sent: Donnerstag, 15. Januar 2015 17:07
> To: tycho-user@xxxxxxxxxxx
> Subject: Re: [tycho-user] How to add JUnit RunListener to Tycho Surefire
> Plugin
> 
> Mickael Istria <mistria@...> writes:
> 
> >
> >
> >     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 HatMy blog - My Tweets
> >
> >
> 
> Hi Mickael,
> 
> thanx for quick reply!
> The <surefireProperties> tag just says, where surefire creates the
> surefire.properties files, in which you can read already setted properties.
> It does not maintain the possibility to set own properties. I could not find
> a way to pass the listener property. Do you have any other ideas?
> 
> Thanks for any hint,
> Henning
> 
> 
> 
> _______________________________________________
> 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