To run JUnit tests with Maven, we typically type:
mvn test
To run integration tests for Spring Boot applications, instead, we use:
mvn verify
To run tests for a single test class TestCircle
, we can use the syntax explained in this article, and summarized below:
mvn -Dtest=TestCircle test
To run just one test method, we can use this syntax:
mvn -Dtest=TestCircle#mytest test
There are more details at: