List all available tags in Cucumber

2019-05-09 13:05发布

Is there a command line option to list all the tags in your cucumber test suite?

For example, I would want something like:

cucumber --show-tags foo.feature

That would give me something like:

@ci
@development
@regression
@wip

标签: cucumber
1条回答
We Are One
2楼-- · 2019-05-09 13:33

For a single file:

cucumber -f tag_cloud foo.feature

You could also find the tags of all features in a directory:

cucumber -f tag_cloud features/login

Or even features that are shared with a particular tag:

cucumber --format tag_cloud --tags @bvt

The output generated for all these is a wiki style table:

| @baseline | @customer | @demographics | @performance |
| 1         | 1         | 1             | 1            |
查看更多
登录 后发表回答