cucumber/cucumber — Issue #155: add support for optional steps in cucumber feature file
Author: aragavan
Created: 2011-10-14 14:07:59+00:00
State: open

I found that when a scenario fails, the execution stops at the step where it failed and rest of the steps are ignored.
For testing websites, not necessarily a previous step is a prerequisite for the next step.
for example, in http://www.bbc.co.uk/ I could have a feature where it checks for the existence of the "news", "sports", "weather" and "top stories" module in the home page

Scenario: As a user I should be able to see all the section in bbc home apge

Given the bbc site is up
When the user visits the bbc home page
Then he should see the sports section
And he should be able to see the weather section
And he should be able to see the sports section
And he should be able to see the top news section

if the sports section module is not there in the bbc home page, scenario will fail without executing the next line.
My feature request is, we should have some control to instruct cucumber to stop/continue when there is a failure because top news section does not depend on any of the previous features.