ciandt / behat-placeholders-extension
Extension to use placeholder parameters on scenarios
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 41 480
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 4
Open Issues: 5
Type:behat-extension
Requires
- behat/behat: ~3.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- symfony/process: ~2.5|~3.0
This package is not auto-updated.
Last update: 2022-08-30 14:06:23 UTC
README
A Behat extension to run scenarios with different parameters per environment and/or per application variant.
Installing
Install with composer:
composer require ciandt/behat-placeholders-extension
Getting Started
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
More info
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
Authors
- Bruno Wowk - Lead developer - bwowk
See also the list of contributors who participated in this project.
License
This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details