First time I'm tryng to use the tagging feature with JUnit tests and cannot seem to get it to work. Am I doing something wrong here?
My test:
@Test
@WithTag(type="feature", name="Reporting")
public void should_run_test() {
}
Pom file:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
<parallel>classes</parallel>
<threadCount>5</threadCount>
<systemPropertyVariables>
<tags>${tags}</tags>
</systemPropertyVariables>
</configuration>
</plugin>
Commands I have tried:
mvn clean verify -Dtags="feature:Reporting"
mvn clean verify -Dtags=feature:Reporting