DevOps / Maven Interview questions
How to run a single test method using maven.
junit 4.x provides support for running specific test methods. You must use the following syntax by specifying the test class and method name. This also accepts patterns for method names.
mvn -Dtest=TestClass#mytest test
you may also select multiple methods using the below syntax.
mvn -Dtest=TestClass#testMOne+testMTwo test
More Related questions...