Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5fe7d0f2f1
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (41 sloc) 1.106 kb
Feature: Rerun Debugger
In order to save time
I want to run *only* failed, pending and missing features from previous runs
(with the help of a smart cucumber.yml)
Background:
Given a standard Cucumber project directory structure
Scenario: title
Given a file named "features/sample.feature" with:
"""
Feature: Rerun
Scenario: Failing
Given failing
Scenario: Missing
Given missing
Scenario: Pending
Given pending
Scenario: Passing
Given passing
"""
And a file named "features/all_good.feature" with:
"""
Feature: Rerun
Scenario: Passing
Given passing
"""
And a file named "features/step_definitions/steps.rb" with:
"""
Given /failing/ do
raise 'FAIL'
end
Given /pending/ do
pending
end
Given /passing/ do
end
"""
When I run cucumber -f rerun features/sample.feature features/all_good.feature
Then it should fail with
"""
features/sample.feature:3:6:9
"""
Jump to Line
Something went wrong with that request. Please try again.