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.6.3 features/post_configuration_hook.feature
davidtrogers-cucumber-0.6.2 features/post_configuration_hook.feature
cucumber-0.6.2 features/post_configuration_hook.feature
cucumber-0.6.1 features/post_configuration_hook.feature
cucumber-0.6.0 features/post_configuration_hook.feature
cucumber-0.5.3 features/post_configuration_hook.feature
cucumber-0.5.2 features/post_configuration_hook.feature
cucumber-0.5.1 features/post_configuration_hook.feature
cucumber-0.5.0 features/post_configuration_hook.feature
cucumber-0.4.5.rc2 features/post_configuration_hook.feature
kbaum-cucumber-0.4.5.pre features/post_configuration_hook.feature
cucumber-0.4.5.rc1 features/post_configuration_hook.feature
middleman-0.10.17 vendor/gems/gems/cucumber-0.4.4/features/post_configuration_hook.feature
middleman-0.10.16 vendor/gems/gems/cucumber-0.4.4/features/post_configuration_hook.feature
middleman-0.10.15 vendor/gems/gems/cucumber-0.4.4/features/post_configuration_hook.feature
rackjour-0.1.8 vendor/gems/gems/cucumber-0.4.4/features/post_configuration_hook.feature
middleman-0.10.14 vendor/gems/gems/cucumber-0.4.4/features/post_configuration_hook.feature
cucumber-0.4.4 features/post_configuration_hook.feature
cucumber-0.4.3 features/post_configuration_hook.feature
cucumber-0.4.2 features/post_configuration_hook.feature