本文介绍了列出 Cucumber 中所有可用的标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有命令行选项可以列出黄瓜测试套件中的所有标签?
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
这会给我类似的东西:
@ci
@development
@regression
@wip
推荐答案
对于单个文件:
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
为所有这些生成的输出是一个 wiki 样式表:
The output generated for all these is a wiki style table:
| @baseline | @customer | @demographics | @performance |
| 1 | 1 | 1 | 1 |
这篇关于列出 Cucumber 中所有可用的标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!