用黄瓜和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.
我在Given /^I fill in "(.*?)""$/
个文件中找不到.feature
!我已经对整个应用程序目录结构进行了深思熟虑,但它不在那里(grep -Hr "I fill in" *
)。
现在,为了清楚起见,我经常使用When /^I fill in "(.*?)" with "(.*?)"$/ do |title, text|
步骤,但这不是黄瓜在上面的代码片段中讨论的内容。
Bueller?
谢谢!
答案 0 :(得分:0)
想出来。在我们的一个.feature
文件中,缺少一个结束引号,因此它搞砸了以下步骤的解析。通过be cucumber feature/filename.feature