Reputation: 1527
I use behat v3.0.15 and i want to put my features in the ./app/features reposistory.
As i can read in the documentation http://docs.behat.org/en/v3.0/guides/6.profiles.html#custom-autoloading all i have to do is to add theses lines in my behat.yml file
# behat.yml
default:
autoload:
'': %paths.base%/app/features/bootstrap
Sadly it doesn't work
When i try to init behat with this command ./bin/behat --config ./app/config/behat.yml --init
, the program creates a features folder under the config folder.
So what can i do?
Upvotes: 0
Views: 247
Reputation: 11
This is how you can define your customized php featureContext files:
autoload: '': %paths.base%/features/bootstrap suites: default: contexts: -
Upvotes: 0
Reputation: 286
You've configured autoloader. Location of features is configured in paths
section.
default:
autoload: %paths.base%/app/features/bootstrap
suites:
default:
paths:
- %paths.base%/app/features
Configuration of paths and autoloader is documented on different pages, so it's confusing. Behat 2.5 documentation is little better (but yaml structure is different).
Example is taken from feature test for custom paths
Upvotes: 2