2010-11-11 15 views
4

是否有一个命令行选项可列出您的cucumber测试套件中的所有标记?列出Cucumber中的所有可用标记

例如,我想是这样的:

cucumber --show-tags foo.feature 

这会给我是这样的:

@ci 
@development 
@regression 
@wip 

回答

4

单个文件:

cucumber -f tag_cloud foo.feature 

你也可以找到目录中所有功能的标签:

与某个特定标签共享个
cucumber -f tag_cloud features/login 

甚至特点:

cucumber --format tag_cloud --tags @bvt 

所有这些生成的输出是一个wiki样式表:

| @baseline | @customer | @demographics | @performance | 
| 1   | 1   | 1    | 1   | 
+6

黄瓜1.2.1版,这似乎不去工作了。关于如何获得使用过的标签列表的任何想法? – 2012-10-15 13:49:28

+0

您可以在http://stackoverflow.com/a/18455872/111995(创建自定义格式化程序的代码和说明) – geekQ 2014-09-08 09:16:41

相关问题