To run one test at a time, run mvn test
mvn -Dtest=MyUnitlTest test
To run one test at a time and a specific method from it:
mvn -Dtest=MyUnitTest
where MyUnitTest is the name of your test, and #method is the name of your method.
Run tests using surefire:
mvn surefire:test
source share