Sha256: 19f80c8986356eb08865bcc3837fbba68016983213c08cb9b0d8d9a252a8de09

Contents?: true

Size: 1.09 KB

Versions: 23

Compression:

Stored size: 1.09 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}" 
      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

23 entries across 23 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.101.2 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.101 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.102.1 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.102.2 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.102 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.103 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.104 features/post_configuration_hook.feature
aslakhellesoy-cucumber-0.3.99 features/post_configuration_hook.feature
dwaite-cucumber-0.3.101 features/post_configuration_hook.feature
engineyard-cucumber-0.3.101 features/post_configuration_hook.feature
kosmas58-cucumber-0.3.100 features/post_configuration_hook.feature
kosmas58-cucumber-0.3.102 features/post_configuration_hook.feature
kosmas58-cucumber-0.3.103 features/post_configuration_hook.feature
kosmas58-cucumber-0.3.99 features/post_configuration_hook.feature
cucumber-0.4.0 features/post_configuration_hook.feature
cucumber-0.4.0.rc1 features/post_configuration_hook.feature
cucumber-0.3.104 features/post_configuration_hook.feature
cucumber-0.3.103 features/post_configuration_hook.feature
cucumber-0.3.102 features/post_configuration_hook.feature