Menu

Showing posts with label Unit Test. Show all posts
Showing posts with label Unit Test. Show all posts

How to run unit test for a specific file using mvn command?

For a single class

 mvn clean test -Dtest=ClassNameTest

For a specific method within a class

 mvn clean test -Dtest=ClassNameTest#MethodName