<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <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>
        <configuration>
                <includes>
                        <include>**/*UnitTest.java</include>
                </includes>
        </configuration>
</plugin>


(An *unmodified* configuration of what I'm using in one project)

Kalle


On Nov 30, 2007 10:57 AM, lightbulb432 <[EMAIL PROTECTED]> wrote:

>
> I have unit tests and integration tests in /src/test/java (e.g.
> Class1UnitTest.java and Class1IntegrationTest.java), and I'd like to have
> <includes> and <excludes> cause only unit tests to run during the
> development profile, but to cause the unit and integration tests to run
> during the integration-testing profile. How can I do this?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Conditionally-use-includes-and-excludes-for-tests-tf4923208s177.html#a14088990
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to