我在 Symfony2 捆绑包(版本 2.2.2)内的 Behat (2.4.*@dev) 初始化进程遇到了一些问题。命令后:
bin/behat --init "@CompanyAppBundle"
behat 目录是在应用程序根目录中创建的,而不是在捆绑包中创建的。输出是:
+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
哪里有问题?
不确定 Behat v2.4,但对于 Behat v3.0,请将捆绑包添加到 behat.yml 的“suites”指令中:
# behat.yml
default:
suites:
company_app_suite:
type: symfony_bundle
bundle: CompanyAppBundle
extensions:
Behat\Symfony2Extension: ~
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)