/
rerun_profile.feature
38 lines (34 loc) · 1.02 KB
/
rerun_profile.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Feature: Rerun profile
In order to concentrate on failing features
As a Rails developer working with Cucumber
I want to rerun only failing features
Scenario: Rerun
Given I have created a new Rails 2 app "rails-2-app" with cucumber-rails support
And a file named "rerun.txt" with:
"""
features/rerun_test.feature:2
"""
And a file named "features/rerun_test.feature" with:
"""
Feature: Rerun test
Scenario: failing before
Given fixed now
Scenario: always passing
Given passing
"""
And a file named "features/step_definitions/rerun_steps.rb" with:
"""
Given /fixed now/ do
puts "All fixed now"
end
Given /passing/ do
puts "I've always been passing"
end
"""
When I successfully run "rake cucumber:rerun"
Then it should pass with:
"""
1 scenario (1 passed)
1 step (1 passed)
"""
And the file "rerun.txt" should not contain "features/rerun_test.feature:2"