Here's how I've done it (with help from others from the mailing list): <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>false</skip> <includes> <include>**/UnitTestSuite.java</include> </includes> <excludes> <exclude>**/*Test.java</exclude> </excludes> </configuration> <executions> <execution> <id>integration-tests</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>false</skip> <forkMode>never</forkMode> <includes> <include>**/IntegrationTestSuite.java</include> </includes> <excludes> <exclude>**/*Test.java</exclude> </excludes> </configuration> </execution> </executions> </plugin>
Run 'mvn install' on your project when you want to execute integration tests. Also, I don't separate unit and integration tests by folder. Marc Dugger [EMAIL PROTECTED] Y!: realtybaronhelp MSN: [EMAIL PROTECTED] AIM: realtybaronhelp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6% real estate sales commission? Not likely. Learn why at http://tinyurl.com/dvkbu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Quoting Clifton Craig <[EMAIL PROTECTED]>: > How would you configure Maven2 to handle functional tests? I have a > bunch of > tests that I don't want to run every time the build runs. Instead I > want to > run them manually on special occasions (Hannukkah, the Swedish new > year, when > the Phillies win the world series, etc.). I want to know where to put > the > compiled output (target/functional-test-classes?) and how to tell > maven to > pick them up from a different source folder during compile. I'm > thinking of > storing the functional tests under src/functional-tests. What are > youre > thoughts on this? > > ------------------------------------------------- > Clifton C. Craig, Software Engineer > Tell me what's up... > visit: http://codeforfun.wordpress.com > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]