如何将黄瓜方案标记为待定 [英] How do you mark a Cucumber Scenario as Pending
本文介绍了如何将黄瓜方案标记为待定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将黄瓜情景标记为待处理,因此不会被视为已通过?
不应该看到编辑链接
#待执行
作为待处理?
解决方案
好了,就算这个了。
场景:新产品表单应该有一些特殊的字段
$
给定joe以用户身份登录
当在新练习页面
上时选择字段应该有一些特殊字段
p $ p>
当/ ^在新的练习页面$ / do
pending#使用你希望的代码表达上面的regexp
end
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
这篇关于如何将黄瓜方案标记为待定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文