Behat "Unidentified Options"

I am trying to start Behat (first time for me) and it worked.

But I have a configuration problem. I tried changing the paths of functions and bootstrap as follows:

#behat.yml default: paths: features: app/tests/features bootstrap: %behat.paths.features%/bootstrap 

Now I get an exception:

 [Symfony\Component\Config\Definition\Exception\InvalidConfigurationException] Unrecognized options "paths" under "testwork" 

What did I do wrong?

+8
php laravel behat
source share
2 answers

Behat 3 is already out. You configure the paths as follows:

 #behat.yml default: autoload: '': %paths.base%/tests/features/bootstrap suites: default: paths: - %paths.base%/tests/features 

The path specified in the autoload section sets the path in which Behat searches for context classes. The paths in the suites section are where the function descriptions are (from the default set in this case).

+18
source share

You are trying to use Behat 3, which has not yet been released - use version 2.5 instead.

+4
source share

All Articles