Hello, 
I am new to Maven 2 (trying to convert from Maven 1). I want to be able
to run my Unit Tests and Integration Tests separately. I have named my
unit tests **UnitTest.java and my integration tests
**IntegrationTest.java. In Maven 1 I would define two custom goals in
maven.xml, one for each type of test, and also define the "include"
filter to include the correct tests in the corresponding custom goal
(the "test-unit" goal would run all my **UnitTest.java files and
"test-integration" would run all of my **IntegrationTest.java files).

How do I do this with Maven 2? I just read through the whole "lifecycle"
concept. Does this mean I would define the SureFire plugin to run in the
"test" phase and the "integration-test" phase and each definition in my
pom.xml would be tied to one of those lifecycle phases (each with their
own separate "include" definition)?

Thank you for the help, it's appreciated!

~ T r o y ~ 

Reply via email to