Sorry about this very basic questions about
maven-failsafe-plugin but I am not very much familiar with maven.
- Is it mandatory to specify
maven-failsafe-plugin to run integration tests?
- Why can't
mvn verify execute integration tests just like
mvn test executes unit tests?
- Can integration tests be executed without this plugin?
Best How To :
mvn test executes the unit tests, because Maven has a default binding from
surefire:test, meaning, if you execute the phase
test, Maven will call the surefire plugin with the goal
test. However, there is no default binding for the integration test or verify phase, so you have to provide it yourself by specifying the failsafe plugin.