繁体   English   中英

幻影黄瓜步骤

[英]phantom cucumber step

与黄瓜和rspec的后卫。 在使一些最新测试通过时,每次黄瓜运行都会显示以下内容:

Running all features
Disabling profiles...
Running tests with args ["--no-profile", "--color", "--format", "progress", "--strict", "--require", "/usr/local/rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/guard-cucumber-1.1.0/lib/guard/cucumber/notification_formatter.rb", "--format", "Guard::Cucumber::NotificationFormatter", "--out", "/dev/null", "--require", "features", "features"]...
Disabling profiles...
....................................U-----........................

10 scenarios (1 undefined, 9 passed)
63 steps (5 skipped, 1 undefined, 57 passed)
0m3.703s

You can implement step definitions for undefined steps with these snippets:

Given /^I fill in "(.*?)""$/ do |arg1|
  pending # express the regexp above with the code you wish you had
end

Done.

我找不到.feature Given /^I fill in "(.*?)""$/在任何.feature文件中都Given /^I fill in "(.*?)""$/ !我已经对整个应用程序目录结构进行了grep -Hr "I fill in" * ,但它不存在( grep -Hr "I fill in" * ) 。

现在,为了清楚起见,有一个When /^I fill in "(.*?)" with "(.*?)"$/ do |title, text| 我经常使用的步骤,但这不是上面的代码片段中黄瓜所谈论的。

Bueller?

谢谢!

弄清楚了。 在我们的一个.feature文件中,缺少一个.feature引号,因此它弄乱了后续步骤的解析。 通过一次手动运行每个功能文件来跟踪它,并be cucumber feature/filename.feature

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM