Symfony2 + Behat 3 : generate Context file to inside the Bundle and not in the features/bootstrap directory Symfony2 + Behat 3 : generate Context file to inside the Bundle and not in the features/bootstrap directory symfony symfony

Symfony2 + Behat 3 : generate Context file to inside the Bundle and not in the features/bootstrap directory


Your solution is fine, but you can also move your context files to the bundle Feature directory (src/Acme/DemoBundle/Features/Context for instance) and it will work right off the bat.

No need then to add any configuration in behat.yml (no autoload entry is necessary).