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 verifyis supposed to run only the integration tests, then why are unit tests executed with it?
Integrations Test always takes a name like IT.java or IT.java or *ITCase.java