Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Below is an example of turning off maven-surefire-plugin during the "test" phase, and turning on maven-surefire-plugin for the "integration-test".  The key to turning off "test" phase execution is setting skip=true for the plugin's default configuration (<skip>true</skip>).

You can change the test directory to src/it in order to mark the difference with normal tests.

Note : You cannot have unit tests and integration tests in the same Maven project.

  • No labels