[ http://jira.codehaus.org/browse/MNG-1421?page=comments#action_50076 ] 

fabrizio giustina commented on MNG-1421:
----------------------------------------

Thanks for the pointer Vincent

however, apart from the missing settings support, it seems that when using 
MavenEmbedder I can't run a multiproject build: modules included in the parsed 
pom are ignored, and passing a list of poms has a totally different result (no 
reactor build). Is this supported in some way?

> provide a way to test plugins without installing them
> -----------------------------------------------------
>
>          Key: MNG-1421
>          URL: http://jira.codehaus.org/browse/MNG-1421
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-core
>     Versions: 2.0
>     Reporter: fabrizio giustina

>
>
> Sometimes unit tests for plugins can't be really affordable (other than 
> harder to write) when not using a "real" maven execution. Manually setting 
> needed properties in the Mojo and calling execute() is error prone, doesn't 
> test real parameters from pom.xml, and it's hard to deal wih multiprojects...
> Maven should provide a way to test plugins without installing them and a base 
> class for testing. Ideally, plugins found on the classpath should always be 
> used instead of the currently installed version. (btw, that's how also the 
> Eclipse plugin environment work: when a plugin is found on the classpath, 
> it's loaded and the currently installed version is ignored).
> A plugin test should be easy to write just like:
> MavenTest maven = new MavenTest(); // load a new maven test instances, 
> plugins found in classpath override installed ones
> maven.setBaseDir(basedir);
> maven.setProfile(myprofile);
> maven.execute("eclipse:eclipse")
> At the moment this is really needed in the site plugin and eclipse plugin 
> (actually some tests are performed executing maven from command line)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to