tourstream/environment-extension

This package is abandoned and no longer maintained. No replacement package was suggested.

Extension for behat, which allows to use env() as parameter

Installs: 3 545

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 0

Type:behat-extension

v1.0.0 2018-03-27 07:39 UTC

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

  1. Install it:

    $ composer require tourstream/environment-extension --dev
  2. 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
  3. 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