How do you mark a Cucumber Scenario as Pending

后端 未结 4 695
面向向阳花
面向向阳花 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:35

    Another possibility is the @wip tag (work in progress). Scenarios tagged @wip will not be run by default, but just when you explicitly request them.

    @wip
    Scenario: New product form should have some special field
      Given I still work on this feature
    

    This way you can exclude some scenarios from the automated build, so that it doesn't break while you are working on the feature.

提交回复
热议问题