Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Behat and Symfony2 bundle issue?

Tags:

php

symfony

behat

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?

like image 889
mariuszgil Avatar asked Nov 03 '22 20:11

mariuszgil


1 Answers

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: ~
like image 83
Andrew Avatar answered Nov 09 '22 04:11

Andrew