Sha256: 56179974e13b9c76f5b112b7195e334372a9d1597ea73b11681f6fe1845b1651

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

@announce
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 3 app "rails-3-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 "ruby script/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

6 entries across 6 versions & 3 rubygems

Version Path
cucumber-rails2-0.3.5 features/rerun_profile.feature
cucumber-rails2-0.3.4 features/rerun_profile.feature
cucumber-rails2-0.3.3 features/rerun_profile.feature
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-rails-0.3.2/features/rerun_profile.feature
cucumber-rails-0.4.0.beta.1 features/rerun_profile.feature
cucumber-rails-0.3.2 features/rerun_profile.feature