您如何将 Cucumber 场景标记为待处理 [英] How do you mark a Cucumber Scenario as Pending
本文介绍了您如何将 Cucumber 场景标记为待处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
How do I mark a cucumber scenario as pending so it doesn't get counted as a passed?
Scenario: Guest should not see edit link
# pending implementation
Shouldn't I be able to mark is as pending?
解决方案
Okay figured this one out.
The Scenarios steps are marked as pending if it's not found in any of the steps files.
Scenario: New product form should have some special field
Given joe is logged in as an user
When on the new exercise page
Then the select field should have some special field
It's even nice enough to stub out the pending step.
When /^on the new exercise page$/ do
pending # express the regexp above with the code you wish you had
end
这篇关于您如何将 Cucumber 场景标记为待处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文