You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stevo Slavić <ss...@gmail.com> on 2009/02/17 10:30:08 UTC

Maven surefire plugin, TestNG & classpath reference to suiteXmlFile

Hello all,

Is there a way to configure Maven surefire plugin to lookup TestNG
suiteXmlFile as classpath resource?

A use case where this would be useful is if one had interfaces,
implementation and test of specific api as separate maven modules, where
test module would contain testng xml file with enumerated all interface
tests needed to be run to verify implementation - here api implementation
module would have to configure surefire plugin to access testng xml file as
classpath resource from test module that implementation module has as test
scope dependency. Current workaround is to use @Test annotation and its
groups attribute but this solution is less powerful then what xml file has
to offer.

Regards,
Stevo.

Re: Maven surefire plugin, TestNG & classpath reference to suiteXmlFile

Posted by Wayne Fay <wa...@gmail.com>.
> Is there a way to configure Maven surefire plugin to lookup TestNG
> suiteXmlFile as classpath resource?

I'm not aware of such functionality at this time, but you could
probably add it by hacking m-s-p in the constructSurefireBooter()
method and adding a corresponding configuration option so Surefire
knows to "look" for the file in the classpath.

Assuming you do this successfully and feel others may benefit from it,
please contribute the modification back via JIRA so it can be
considered for inclusion in a future version of Maven. Otherwise you
will be "stuck" maintaining your own modified m-s-p with this
additional feature.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org