Quick start

Install Behat

If you didn’t install Behat already, then you can install it with composer in the following way:

$ composer require --dev behat/behat

For alternative installation options check the Behat official documentation

Install the Extension

Similarly you can install the extension via composer:

$ composer require --dev bex/behat-rst-specification-locator-extension

For more information see the the installation section of this documentation.

Setup the Behat configuration

You need to enable the extension in the Behat configuration. Your behat.yml should look like this:

default:
  extensions:
    Bex\Behat\BehatRSTSpecificationLocatorExtension: ~

For more detailed information see the configuration section of this documentation.