- Make a copy of
behat.example.yml
namedbehat.yml
and update it as appropriate. - Run
composer install
in this directory to install dependencies. - Run
./bin/behat
in this directory to run all behat tests.
- To run only the tests in one feature:
./bin/behat features/example.feature
- To run only the tests with a certain tag:
./bin/behat --tags="mytag"
- Create new
.feature
files in/tests/features
, or just add steps to an existing.feature
file. - Use the format of existing tests as an example. Run
./bin/behat -dl
in this directory to see a list of all available steps.