How do you mark a Cucumber Scenario as Pending

后端 未结 4 615
面向向阳花
面向向阳花 2020-12-16 08:51

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
         


        
4条回答
  •  有刺的猬
    2020-12-16 09:39

    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
    

提交回复
热议问题