用黄瓜和 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
!我已经 grepped 了整个应用程序目录结构,但它不存在(grep -Hr "I fill in" *
)。
现在,为了清楚起见,有一个When /^I fill in "(.*?)" with "(.*?)"$/ do |title, text|
我经常使用的步骤,但这不是黄瓜在上面的代码片段中谈论的内容。
布勒?
谢谢!