Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (34 sloc) 1.039 kb
17a5c3b @msassak Feature to test rerun profile
msassak authored
1 Feature: Rerun profile
2 In order to concentrate on failing features
3 As a Rails developer working with Cucumber
4 I want to rerun only failing features
5
6 Scenario: Rerun
346a338 @mattwynne I do not care what your rails app is called
mattwynne authored
7 Given I have created a new Rails 3 app and installed cucumber-rails
17a5c3b @msassak Feature to test rerun profile
msassak authored
8 And a file named "rerun.txt" with:
9 """
10 features/rerun_test.feature:2
11 """
12 And a file named "features/rerun_test.feature" with:
13 """
14 Feature: Rerun test
15 Scenario: failing before
16 Given fixed now
17
18 Scenario: always passing
19 Given passing
20 """
21 And a file named "features/step_definitions/rerun_steps.rb" with:
22 """
23 Given /fixed now/ do
24 puts "All fixed now"
25 end
26
27 Given /passing/ do
28 puts "I've always been passing"
29 end
30 """
173cdf5 @aslakhellesoy Release 0.4.0
aslakhellesoy authored
31 When I successfully run `bundle exec cucumber -p rerun`
17a5c3b @msassak Feature to test rerun profile
msassak authored
32 Then it should pass with:
33 """
34 1 scenario (1 passed)
35 1 step (1 passed)
36 """
37 And the file "rerun.txt" should not contain "features/rerun_test.feature:2"
38
Something went wrong with that request. Please try again.