I've got some problems with Behat (2.4.*@dev) init process inside Symfony2 bundle (ver 2.2.2). After command:
bin/behat --init "@CompanyAppBundle"
behat directories are created inside application root directory, not in bundle. The output is:
+d features - place your *.feature files here
+d features/bootstrap - place bootstrap scripts and static files here
+f features/bootstrap/FeatureContext.php - place your feature related code here
Where is the problem?
Not sure about Behat v2.4, but for Behat v3.0, add the bundle to the 'suites' directive of behat.yml:
# behat.yml
default:
  suites:
    company_app_suite:
      type: symfony_bundle
      bundle: CompanyAppBundle
  extensions:
    Behat\Symfony2Extension: ~
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With