tourstream / environment-extension
Extension for behat, which allows to use env() as parameter
Installs: 3 549
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 1
Open Issues: 0
Type:behat-extension
Requires
- php: ^7.1
- behat/behat: ^3.4
- symfony/dotenv: ^3.4|^4.0
Requires (Dev)
This package is not auto-updated.
Last update: 2021-03-06 09:34:23 UTC
README
Allows to use the symfony env parameter syntax in the behat config
Usage
-
Install it:
$ composer require tourstream/environment-extension --dev
-
Enable and configure environment extension in your Behat configuration:
# behat.yml default: # ... extensions: Tourstream\Behat\EnvironmentExtension: # the default configuration: env_file: '%paths.base%/.env' #default path
-
EnvironmentExtension should be the last extensions, so that all parameters are already known. Otherwise it can happen, that not all
%env()%
are resolved
Configuration reference
env_file
- a dot env file, contains environment variables which should be also used, the file is not required