You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vitor lundberg <vi...@gmail.com> on 2008/02/27 17:43:42 UTC
Integration Tests
hello,
in the maven lifecycle we have the integration tests.
Can some one help me to understand how to implement thoses tests ??
thx,
Vitor
Re: Integration Tests
Posted by Kalle Korhonen <ka...@gmail.com>.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/*UnitTest.java</include>
</includes>
</configuration>
<executions>
<execution>
<id>surefire-it</id>
<phase>integration-test</phase>
<configuration>
<includes>
<include>**/*IntegrationTest.java</include>
</includes>
</configuration>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
Kalle
On Wed, Feb 27, 2008 at 8:59 AM, vitor lundberg <vi...@gmail.com>
wrote:
> Thx for replay Luc,
>
> but the problem is if I create my integration test under src/test/java my
> integration test will starts like a unit test under the lifecyle "test"
> and
> I wish that my integration test start after the "package" steep.
> so if I put my classes under the same repertory as the tests classes
> maven
> dont make the differences
> that is a way to make a difference thoses tests ?
>
> On Wed, Feb 27, 2008 at 5:47 PM, Luca Marrocco <lu...@gmail.com>
> wrote:
>
> > Hi Vitor,
> > the simplest way is to create you integration test as junit classes
> > under src/test/java directory.
> >
> >
> > Luca
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
Re: Integration Tests
Posted by Paul Benedict <pb...@apache.org>.
See this posting:
http://mail-archives.apache.org/mod_mbox/maven-users/200801.mbox/%3C52bab8690801221014s59119180o24fee7177c134a97@mail.gmail.com%3E
Paul
On Wed, Feb 27, 2008 at 11:06 AM, Luca Marrocco <lu...@gmail.com>
wrote:
> 2008/2/27, vitor lundberg <vi...@gmail.com>:
> > I wish that my integration test start after the "package" steep.
> > so if I put my classes under the same repertory as the tests classes
> maven
> > dont make the differences
> > that is a way to make a difference thoses tests ?
>
> i havent tried this feature using maven so i'm sure that i can help
> you, i'm sorry. Surfing on internet i have found this article that can
> help you to solve your issue
>
> http://adminsight.de/2006/04/04/integration-and-unit-test-strategies-with-maven2/
>
>
> Luca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Integration Tests
Posted by Luca Marrocco <lu...@gmail.com>.
2008/2/27, vitor lundberg <vi...@gmail.com>:
> I wish that my integration test start after the "package" steep.
> so if I put my classes under the same repertory as the tests classes maven
> dont make the differences
> that is a way to make a difference thoses tests ?
i havent tried this feature using maven so i'm sure that i can help
you, i'm sorry. Surfing on internet i have found this article that can
help you to solve your issue
http://adminsight.de/2006/04/04/integration-and-unit-test-strategies-with-maven2/
Luca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Integration Tests
Posted by vitor lundberg <vi...@gmail.com>.
Thx for replay Luc,
but the problem is if I create my integration test under src/test/java my
integration test will starts like a unit test under the lifecyle "test" and
I wish that my integration test start after the "package" steep.
so if I put my classes under the same repertory as the tests classes maven
dont make the differences
that is a way to make a difference thoses tests ?
On Wed, Feb 27, 2008 at 5:47 PM, Luca Marrocco <lu...@gmail.com>
wrote:
> Hi Vitor,
> the simplest way is to create you integration test as junit classes
> under src/test/java directory.
>
>
> Luca
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Integration Tests
Posted by Luca Marrocco <lu...@gmail.com>.
Hi Vitor,
the simplest way is to create you integration test as junit classes
under src/test/java directory.
Luca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org