1

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

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

cucumber -dS

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

我搜索了黄瓜手册页,但只有我找到“黄瓜人(2004)”和cukes.info

4

1 回答 1

0

你应该试试:

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

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

 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.
于 2014-09-02T15:26:19.223 回答