Tagging feature with JUnit doesn't seem to work

34 views
Skip to first unread message

Ilyas Patel

unread,
Jun 6, 2016, 11:43:08 AM6/6/16
to Serenity BDD Users Group
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

Ilyas Patel

unread,
Jun 6, 2016, 11:44:17 AM6/6/16
to Serenity BDD Users Group
Forgot to add version of Junit I'm running:

<serenity.version>1.1.31</serenity.version>

Reply all
Reply to author
Forward
0 new messages