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.

1.4.0 2019-12-03 13:29 UTC

This package is not auto-updated.

Last update: 2022-08-30 14:06:23 UTC


README

Scrutinizer Code Quality Travis CI

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