List all available tags in Cucumber

。_饼干妹妹 提交于 2019-12-22 05:22:06

问题


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

回答1:


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            |


来源:https://stackoverflow.com/questions/4158842/list-all-available-tags-in-cucumber

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!