To run a single tests class and all of its methods in Maven, you need to use the command:
mvn test -Dtest=TestCircle
Where TestCircle is the test class name.

To run a single test method in Maven, you need to provide the command as:
mvn test -Dtest=TestCircle#xyz
Where TestCircle is the test class name and xyz is the test method.

Note: You can also use wild card characters in the method name and class name.



Published

22 June 2012

Tags