library suite-settings-extension
Allows to overwrite suites' default settings.
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
Allows overwriting suites' default settings., (*1)
Usage
-
Install it:, (*2)
composer require friends-of-behat/suite-settings-extension --dev
-
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!
-
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"
dev-master
9999999-dev
Allows to overwrite suites' default settings.
Sources
Download
MIT
The Requires
The Development Requires
v1.0.1
1.0.1.0
Allows to overwrite suites' default settings.
Sources
Download
MIT
The Requires
The Development Requires
v1.0.0
1.0.0.0
Allows to overwrite suites' default settings.
Sources
Download
MIT
The Requires