pre-integration-test and post-integration-test phases for preparing and cleaning up integration tests.
project/
|_ src
|_ main
|_ test
|_ java
|_ resources
|_ it
|_ java
|_ resources
|
executions but the 2 phases to attach tests to will be test (for unit tests) and integration-test.surefire:it goal. See MSUREFIRE-50.<integrationTestSourceDirectory> to the POM model. See MNG-2009. Note: Does this need updating the minor version of the POM version?generate-integration-test-sources, process-integration-test-sources, generate-integration-test-resources, process-integration-test-resources and integration-test-compile. See MNG-2010src/it, src/itest, src/test-integration or src/integration-test?surefire:it, surefire:itest, surefire:integration, surefire:integration-test?integration-test-package phase too?it scope (or itest or integration-test)? (see MNG-2011)
project/
|_ src
|_ main
|_ test
|_ unit
|_ java
|_ resources
|_ integration
|_ java
|_ resources
|_ functional
|_ java
|_ resources
|
src/test into something more explicit like src/test-unit? BTW the same question will arise for the lifecycle which is currently named test even though it's meant to be only for unit tests. Same for <testSourceDirectory>.Other issues/articles related to the testing strategy / testing best practices
Older stuff: