maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
Subject Re: Integration Test
Date Mon, 18 Sep 2006 14:12:44 GMT
On 9/18/06, Philippe Faes <Philippe.Faes@elis.ugent.be> wrote:

> Is there an easy way to automatically build and test integration test
> projects?
> I have an integration test in:
> ./src/test/it/pom.xml
> The maven doc suggests this should be build and executed in the
> integration-test lifecycle, but
> $ mvn integration-test
> does not run my test.

I'm not so sure about that directory structure.   You have a pom.xml
file underneath 'src' ?

I would expect something like:
   project/core/
   project/webapp/
   project/integration/
   project/integration/src/test/java   (<-- or src/it/java )

With the integration tests in a separate module, you can use the info
on the wiki page that Mykel linked to.  You might need to add
<testSourceDirectory> if your test classes are not in the default
src/test/java directory.

Another option is for the 'integration' module to use packaging type
'pom' and for you to bind executions of all the plugins exactly where
you want them.

In short, integration testing is not yet supported 'out of the box'
just by placing classes in the right directory.  It's still under
discussion, and for now you have to add some configuration.

-- 
Wendy

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


Mime
View raw message