How to run individual tests using behat

Re: How to run individual tests using behat

by Luke Carrier -
Number of replies: 0

Note than in order run a single feature file, it appears you need to use the fully qualified path to the file like so:

vendor/bin/behat --config /path/to/behat.yml $(pwd)/path/to/test/behat/file.feature

You can also run specific scenarios within the file by supplying a starting and (optional) ending line number:

vendor/bin/behat --config /path/to/behat.yml $(pwd)/path/to/test/behat/file.feature:123-321

Average of ratings: Useful (1)