I have the following configuration in the pom.xml:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<includes>
<include>**/TestA.java</include>
<include>%regex[.*TestB.*]</include>
</includes>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
What I want is to run via command line methods case0 and case1 of TestA and case100 and case101 of TestB. Both TestA and TestB have more methods that I want to ignore. I can do it easily with the surefire-plugin:
mvn test -Dtest=org.TestA#case0+case1,org.TestB#case100+case101
but I cannot do the same using failsafe-plugin. Is it doable at all?
I use: JUnit 4.11, and failsafe/surefire 2.18.1.
Thanks in advance!