Sample Maven project with basic structure for integration testing.
- Uses Maven Failsafe Plugin to run integration tests.
- Uses Exec Maven Plugin to run java programs for setting up and tearing down the integration test environment in the Maven pre-integration-test and post-integration-test lifecycle phases.
- The Maven Site Plugin is used to generate a site for the project.
- The Maven Project Info Reports plugin is used to generate reports information about the project.
For running integration tests:
mvn clean verify -P integration-test
For generating a report use:
mvn surefire-report:failsafe-report-only
See generated reports on target/site/failsafe-report.html.
For generating a site for the project use:
mvn site
See generated reports on target/site/index.html.