2017 © Pedro Peláez
 

library suite-settings-extension

Allows to overwrite suites' default settings.

image

friends-of-behat/suite-settings-extension

Allows to overwrite suites' default settings.

  • Monday, July 10, 2017
  • by pamil
  • Repository
  • 4 Watchers
  • 33 Stars
  • 86,106 Installations
  • Gherkin
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 18 % Grown

The README.md

Suite Settings Extension License Version Build status on Linux Scrutinizer Quality Score

Allows overwriting suites' default settings., (*1)

Usage

  1. Install it:, (*2)

    composer require friends-of-behat/suite-settings-extension --dev
    
  2. Enable and configure default suite settings in your Behat configuration:, (*3)

    # behat.yml
    default:
        # ...
        extensions:
            FriendsOfBehat\SuiteSettingsExtension: # the default configuration:
                paths:
                    - "features" # default one!
                contexts:
                    - "FeatureContext" # default one!
    
  3. Every suite you create will have those settings as the default ones., (*4)

Configuration reference

  • paths - an array, contains locations where Behat looks for *.feature files
  • contexts - an array, if there are no custom ones in suite configured, these are used

Protip!

If you've changed your paths, that they do not contain features anymore, your contexts may be not loaded properly. To ensure this, pass the same folder to built-in autoloader extension:, (*5)

# behat.yml
default:
    # ...
    autoload:
        - "%paths.base%/custom_features/bootstrap" # features -> custom_features

    extensions:
        FriendsOfBehat\SuiteSettingsExtension:
            paths:
                - "custom_features"

The Versions

10/07 2017

dev-master

9999999-dev

Allows to overwrite suites' default settings.

  Sources   Download

MIT

The Requires

 

The Development Requires

10/07 2017

v1.0.1

1.0.1.0

Allows to overwrite suites' default settings.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/07 2016

v1.0.0

1.0.0.0

Allows to overwrite suites' default settings.

  Sources   Download

MIT

The Requires