I have multiple Junit test suites (SlowTestSuite, FastTestSuite etc). I would like to run only specific suite using maven command. e.g.
mvn clean install test -Dtest=FastTestSuite -DfailIfNoTests=false
but its not working. Just not running any test at all. Any suggestions please.
I have achieved this by adding property into pom as:
and maven-surefire-plugin should be:
so it means by default it will run FastTestSuite but you can run other test e.g. SlowTestSuite using maven command as: