Skip to content

Commit 3c050fa

Browse files
authored
Document that JUnit tag expressions can be used with Maven
1 parent f84b156 commit 3c050fa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ You can also specify what to run by *tag*:
6363

6464
@IncludeTags("zucchini")
6565

66+
When using Maven, tags can be provided from the CLI using the `groups` and `excludedGroups` parameters. These take a
67+
[JUnit5 Tag Expression](https://junit.org/junit5/docs/current/user-guide/#running-tests-tag-expressions).
68+
Note: When using JUnit, the `@` is not part of the tag.
69+
70+
```
71+
mvn verify -DexcludedGroups="Haricots" -Dgroups="Zucchini | Gherkin"
72+
```
73+
6674
## Running a single scenario or feature
6775

6876
Maven and Gradle do not (yet) support selecting single features or scenarios

0 commit comments

Comments
 (0)