You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Morgovsky, Alexander (US - Glen Mills)" <am...@deloitte.com> on 2007/05/07 05:44:37 UTC

Integration tests in Maven 2

May someone please tell me what I need to add to the POM to run
integration tests?  In which element do I need to declare the location
of the integration test .java files?  Which plugin do I need to add to
the <plugins> section to run the integration tests?  Thanks. 


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. [v.E.1]

Re: Integration tests in Maven 2

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/6/07, Morgovsky, Alexander (US - Glen Mills)
<am...@deloitte.com> wrote:

> May someone please tell me what I need to add to the POM to run
> integration tests?  In which element do I need to declare the location
> of the integration test .java files?  Which plugin do I need to add to
> the <plugins> section to run the integration tests?  Thanks.

The lifecycle has phases for integration testing, but the support
isn't very good yet.

I don't know of any plugins that use the integration test phases by
default, so getting it to work usually involves binding various
plugins to phases.  For example, start a container, deploy an app, run
tests, stop the container.

There is only one test source directory per module, so the best advice
is to have a separate module for the integration tests.

There is some info here, feel free to add more:
http://docs.codehaus.org/display/MAVENUSER/Maven+and+Integration+Testing

-- 
Wendy

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