behat-extension behat-environment
Behat extension to provide environment specific information in a context classes.
wohlie/behat-environment
Behat extension to provide environment specific information in a context classes.
- Sunday, June 24, 2018
- by Wohlie
- Repository
- 1 Watchers
- 0 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Allows to inject the current project environment into a context. The extension currently only supports the version
number., (*1)
The project environment can be extracted from the following resources:
- package.json
- The version will be extracted from the object key version
- composer.json
- The version will be extracted from the object key version
- *.property
- The version will be extracted from the key artifact.version
, (*2)
Usage
-
Install it:, (*3)
$ composer require wohlie/behat-environment
-
Enable this extension and configure Behat to use it:, (*4)
# behat.yml
default:
# ...
extensions:
Wohlie\Behat\Environment:
property_file: '%paths.base%/package.json'
The parameter property_file
is required., (*5)
- Implement the interface
\Wohlie\Behat\Environment\Context\EnvAwareContext
in your context class to get the
environment object.
dev-master
9999999-dev
Behat extension to provide environment specific information in a context classes.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Wohllebe
bdd
behat
environment
v1.0.0
1.0.0.0
Behat extension to provide environment specific information in a context classes.
Sources
Download
MIT
The Requires
The Development Requires
by
Erik Wohllebe
bdd
behat
environment