Skip to content

A Behat extension to run scenarios with different parameters per environment and/or per application variant.

License

Notifications You must be signed in to change notification settings

ciandt-china-dev/behat-placeholders-extension

 
 

Repository files navigation

Behat Placeholders Extension

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

About

A Behat extension to run scenarios with different parameters per environment and/or per application variant.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 56.9%
  • Gherkin 43.1%