Skip to content

Commit

Permalink
Added additional details for Cucumber 7 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo authored Apr 7, 2024
1 parent 02a5148 commit 04e543f
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docs/reporting/filtering-reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,20 @@ If you have already run the full set of tests, you can also produce a filtered a

```bash
mvn serenity:aggregate -Dtags=sprint-2
```
```

## Using tags with Cucumber and JUnit 5

When running Cucumber tests with JUnit 5, you can use the `FILTER_TAGS_PROPERTY_NAME` configuration property to manage the tags for a specific test runner:

```java
@ConfigurationParameter(key = FILTER_TAGS_PROPERTY_NAME, value = "@smoke-test and @filtering")
public class CucumberTestSuite {
}
```

Alternatively, from the command line, you can use the `tags` command line property as shown here (note that with Cucumber 7, you don't need the '@' symbol for the tags when specifying tags on the command line):

```
mvn clean verify -Dtags="smoke-test or filtering"
```

0 comments on commit 04e543f

Please sign in to comment.