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 likemvn test
executes unit tests? - Can integration tests be executed without this plugin?
mvn test
executes the unit tests, because Maven has a default binding fromtest
tosurefire:test
, meaning, if you execute the phasetest
, Maven will call the surefire plugin with the goaltest
. 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.