如何将 Cucumber Scenario 标记为 Pending [英] How do you mark a Cucumber Scenario as Pending

查看:25
本文介绍了如何将 Cucumber Scenario 标记为 Pending的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将黄瓜场景标记为待处理,以免被视为通过?

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?

推荐答案

好的,想通了.

如果在任何步骤文件中都找不到场景步骤,则会将其标记为待处理.

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 Scenario 标记为 Pending的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆