黄瓜列表未定义步骤的位置

时间:2013-10-25 14:25:55

标签: cucumber

我注意到一些测试意外地变得不确定,并且错过了。与错误不同,它们的位置未列出。

通过阅读帮助文件,我尝试了:

cucumber -dS

进行干运行,因此可以快速识别未定义的测试。但严格的选项不会导致他们抛出错误,所以我没有列出他们的位置。

我用谷歌搜索黄瓜手册页,但只有我找到了"Cucumber Man (2004)"和cukes.info

1 个答案:

答案 0 :(得分:0)

你应该尝试:

bundle exec cucumber features/product/product.feature -r features/

你可以看到黄瓜帮助的第一个选项

 bundle exec cucumber --help

-r, --require LIBRARY|DIR        Require files before executing the features. If this
                                 option is not specified, all *.rb files that are
                                 siblings or below the features will be loaded auto-
                                 matically. Automatic loading is disabled when this
                                 option is specified, and all loading becomes explicit.
                                 Files under directories named "support" are always
                                 loaded first.
                                 This option can be specified multiple times.