From ba256607fca9980c8f67c7f330af402867c76eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mari=C3=A1n=20Macik?= Date: Mon, 9 Mar 2020 12:50:30 +0100 Subject: [PATCH] Document "How to run multiple tags with godog?" --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 367a5de..8577f0c 100644 --- a/README.md +++ b/README.md @@ -323,6 +323,17 @@ func TestMain(m *testing.M) { Now when running `go test -v` it will use **pretty** format. +### Tags + +If you want to filter scenarios by tags, you can use the +`-t=` or `--tags=` where `` +is one of the following: + +- `@wip` - run all scenarios with wip tag +- `~@wip` - exclude all scenarios with wip tag +- `@wip && ~@new` - run wip scenarios, but exclude new +- `@wip,@undone` - run wip or undone scenarios + ### Configure common options for godog CLI There are no global options or configuration files. Alias your common or