0

How to run multiple methods present in different classes on mvn command line referred How to run multiple test classes or test methods using Maven? doesn't work for multiple method present in different class

Tried with below line mvn -Dtest=testclass#method1, -Dtest=testclass2#method1 test

Community
  • 1
  • 1
Anu
  • 1
  • 5
    Possible duplicate of [How to run multiple test classes or test methods using Maven?](http://stackoverflow.com/questions/27653510/how-to-run-multiple-test-classes-or-test-methods-using-maven) – Oleg Estekhin May 12 '17 at 16:12
  • http://maven.apache.org/surefire/maven-surefire-plugin/examples/single-test.html provides a lot of examples, including examples that mix and match different classes and different methods from each class – Oleg Estekhin May 12 '17 at 16:13
  • @Oleg Estekin suggested link gives the solution to run multiple different classes or multiple methods present in single class. Here want a command to run multiple different classes with their method. For eg., Class A has methods testmethod1(), testmethod2() and Class B has methods testX(),testZ() now I want to run through command line statement contains CalssA methods and ClassB methods – Anu May 14 '17 at 03:54

0 Answers0