Ruby 如何使用Cucumber 3组合步骤?
我正在用黄瓜的表情写我的测试服,我发现很难让一些步骤向后兼容。有一个应该每隔一步在应用程序小部件中“包装”一次: 例如,在另一个步骤中:Ruby 如何使用Cucumber 3组合步骤?,ruby,cucumber,gherkin,Ruby,Cucumber,Gherkin,我正在用黄瓜的表情写我的测试服,我发现很难让一些步骤向后兼容。有一个应该每隔一步在应用程序小部件中“包装”一次: 例如,在另一个步骤中: When "I follow the link to {word}" do |page| # stuff end 我能够编写此功能: And I follow the link to MyApp in the applications widget 但是,当我将第一步写为: Then "{} in the applicat
When "I follow the link to {word}" do |page|
# stuff
end
我能够编写此功能:
And I follow the link to MyApp in the applications widget
但是,当我将第一步写为:
Then "{} in the applications widget" do ...
这是不可能的,还是我使用了错误的捕获组。。?我在或中都没有找到任何东西。我相信Cucumber Ruby的最新版本是v5。v3可能没有注释性参数类型。
Then "{} in the applications widget" do ...