Sha256: 3209af4fdce7ebefee128c5c642601c512bb9d0b50d66a808cb975729c59ca36

Contents?: true

Size: 1.1 KB

Versions: 41

Compression:

Stored size: 1.1 KB

Contents

Feature: Post Configuration Hook [#423]

  In order to extend Cucumber
  As a developer
  I want to manipulate the Cucumber configuration after it has been created

  Scenario: configuration modified to use HTML formatter

    Given a standard Cucumber project directory structure
    And a file named "features/support/env.rb" with:
      """
      AfterConfiguration do |config|
        config.options[:formats] << ['html', config.out_stream]
      end
      """
    When I run cucumber features
    Then STDERR should be empty
    And the output should contain
      """
      html
      """

  Scenario: feature directories read from configuration

    Given a standard Cucumber project directory structure
    And a file named "features/support/env.rb" with:
      """
      AfterConfiguration do |config|
        config.out_stream << "AfterConfiguration hook read feature directories: #{config.feature_dirs.join(', ')}" 
      end
      """
    When I run cucumber features
    Then STDERR should be empty
    And the output should contain
      """
      AfterConfiguration hook read feature directories: features
      """

Version data entries

41 entries across 41 versions & 5 rubygems

Version Path
cucumber-0.8.7 features/post_configuration_hook.feature
cucumber-0.8.5 features/post_configuration_hook.feature
cucumber-0.8.4 features/post_configuration_hook.feature
cucumber-0.8.3 features/post_configuration_hook.feature
cucumber-0.8.2 features/post_configuration_hook.feature
cucumber-0.8.1 features/post_configuration_hook.feature
cucumber-0.8.0 features/post_configuration_hook.feature
cucumber-0.7.3 features/post_configuration_hook.feature
cucumber-0.7.2 features/post_configuration_hook.feature
cucumber-0.7.1 features/post_configuration_hook.feature
cucumber-0.7.0 features/post_configuration_hook.feature
cucumber-0.7.0.beta.8 features/post_configuration_hook.feature
cucumber-0.7.0.beta.7 features/post_configuration_hook.feature
cucumber-0.7.0.beta.6 features/post_configuration_hook.feature
cucumber-0.7.0.beta.5 features/post_configuration_hook.feature
cucumber-0.7.0.beta.4 features/post_configuration_hook.feature
cucumber-0.7.0.beta.3 features/post_configuration_hook.feature
cucumber-0.7.0.beta.2 features/post_configuration_hook.feature
cucumber-0.7.0.beta.1 features/post_configuration_hook.feature
cucumber-0.6.4 features/post_configuration_hook.feature