I'm bit confused with mvn verify
phase. I've created a Spring Boot project (a simple project, without any explicit configurations added). I've created a few JUnit unit tests which are run with both the mvn verify
and mvn test
commands.
There isn't any difference observed in the mvn verify
and mvn test
command output.
What does mvn verify
do different than mvn test
?
Also some posts on Stack Overflow mentions that mvn verify
runs the integration tests. If this is the case then I have few questions.
- How does Maven identify a specific test as a unit test or integration test?
- If
mvn verify
is supposed to run only the integration tests, then why are unit tests executed with it?
verify
does apart from executing additional phases thantest
. Alsochecks on results of integration tests to ensure quality criteria
is not very clear, what checks? why only integration tests? where is quality criteria configured? – Alcoholic