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

Maven J2EE Eclipse: Hello world in J2EE and Maven on Eclipse

Leave a Reply

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

*
*