Sha256: 62a0ed82c0a6d600df9b9c0d71f9a6b0ccc090d7eaf6cbcac03431044117595d

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

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 app and installed cucumber-rails
    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 `bundle exec cucumber -p 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"    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cucumber-rails-1.4.0 features/rerun_profile.feature