Run Single test using Maven Java

How to run single Test using Maven

If you want to run the whole test in maven then

mvn test

will do the trick, but how about if you want to run single test

mvn -Dtest=SomeTest test

Where SomeTest is the name of the test you want to run

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*