A Behat extension to run scenarios with different parameters per environment and/or per application variant.
Install with composer:
composer require ciandt/behat-placeholders-extension
Set up on behat.yml:
default:
extensions:
Ciandt\Behat\PlaceholdersExtension:
config_tags:
foo: %paths.base%/features/foo.yml
Create your replacements file (features/foo.yml):
default:
placeholders:
my_placeholder: 'My replacement'
Use your placeholder on your features, wrapping it with ${}:
Scenario: Echo the value
Given I echo "${my_placeholder}"
On runtime, ${my_placeholder} will be replaced by My replacement
We use SemVer for versioning. For the versions available, see the tags on this repository. We also keep a changelog based on Keep a Changelog
- Bruno Wowk - Lead developer - bwowk
See also the list of contributors who participated in this project.
This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details