Hm ... so the surefire plugin as well as the cobertura plugin know 
about the classpath and dependencies as well. You could just wrap the 
test suite into a unit test and run it just liek the other tests. To 
separate from these you could make a sibling project that depends on 
the current on in which the integration tests live.. (or have the 
test wrapper as integration test in src/it/...)

manfred

Manfred Moser
http://www.mosabuam.com
skype: mosabua
http://www.linkedin.com/in/manfredmoser


On Thursday January 8 2009, Patrick Struhs wrote:
> The tests I am talking about are what I would consider regression
> tests.  We do use surefire and the cobertura plugin to run the unit
> tests for this module also.  But the developer created an automated
> test suite which I used to run from the command line,  but then
> found the maven-exec-plugin and started using that to run the
> tests.  I could go back to the command line,  but I really like the
> way the maven-exec-plugin generated the classpath based on the
> project dependencies.
>
> -----Original Message-----
> From: Manfred Moser [mailto:[email protected]]
> Sent: Wednesday, January 07, 2009 4:38 PM
> To: [email protected]
> Subject: Re: [mojo-user] maven-exec-plugin prepend classpath or use
> java.ext.dirs
>
> Why dont you use the surefire plugin and the cobertura plugin?
>
> manfred
>
> Manfred Moser
> http://www.mosabuam.com
> skype: mosabua
> http://www.linkedin.com/in/manfredmoser
>
> On Wednesday January 7 2009, Patrick Struhs wrote:
> > I am using the maven-exec-plugin to run some automated java tests
> > after a maven build.  It's working great.  Now I would like to
> > instrument the jarfiles I am testing, and run my tests against
> > those.  I would need to prepend the classpath in order to do
> > this. But I don't see any way to do this with the
> > maven-exec-plugin.
> >
> > My other option was to use -Djava.ext.dirs=/instfiles but when I
> > use that it will not load classes specified on the classpath.  I
> > think it is because they are in application loader while I am
> > trying to call it from the extension loader.  If I add all jars
> > to the java.ext.dirs directory the tests run.  Or if I specify
> > all jars ( including the instrumented jars ) on the classpath it
> > works, but not when I have mixed classpath and -Djava.ext.dirs.
> >
> > Is there anyway for me to prepend the classpath generated by the
> > maven-exec-plugin?
> >
> > Thanks, Patrick
> >
> > Here's a snippet from my pom
> >
> >         <configuration>
> >           <executable>java</executable>
> >           <arguments>
> >
> > <argument>-Djava.ext.dirs=/usr/java/jdk1.6.0_04/jre/lib/ext:/usr/
> >ja
> > va/packages/lib/ext:/home/user/deploy/Standards-Encoding</argumen
> >t> <argument>-classpath</argument>
> >             <classpath/>
> >             <argument>-Xmx1024M</argument>
> >
> > <argument>org.familysearch.standards.test.EncodingTestCase</argum
> >en t> </arguments>
> >         </configuration>
> >
> >
> >  NOTICE: This email message is for the sole use of the intended
> > recipient(s) and may contain confidential and privileged
> > information. Any unauthorized review, use, disclosure or
> > distribution is prohibited. If you are not the intended
> > recipient, please contact the sender by reply email and destroy
> > all copies of the original message.
>
> -------------------------------------------------------------------
>-- To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>
>  NOTICE: This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended recipient,
> please contact the sender by reply email and destroy all copies of
> the original message.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to