[英]Can't get behat running on symfony
I'm using Symfony 2(latest version) framework and I want to use behat. 我正在使用Symfony 2(最新版本)框架,并且想使用behat。
I've already inited the Features folder inside my bundle with Context/FeatureConext.php and /xxx.feature 我已经使用Context / FeatureConext.php和/xxx.feature初始化了包中的Features文件夹。
My behat.yml is located in app/config folder of Symfony 2 and is looking like this : 我的behat.yml位于Symfony 2的app / config文件夹中,看起来像这样:
default:
paths:
features : %behat.paths.base%/../src/xxx/myBundle/features
bootstrap: %behat.paths.features%/bootstrap
context:
class: FeatureContext
formatter:
name: progress
extensions:
Behat\Symfony2Extension\Extension:
mink_driver: true
kernel:
env: test
debug: true
Behat\MinkExtension\Extension:
base_url: 'localhost/web/app_dev.php'
default_session: symfony2
suites:
test_suite:
type: symfony_bundle
bundle: 'xxxMyBundleBundle'
How do I exactly specify the path to my feature folder ? 如何准确指定功能文件夹的路径?
Thanks you. 谢谢。
Thank you Pierre for your answer. 谢谢皮埃尔的回答。
Indeed, behat.yml should be in the root folder but I have read that there is a way to put it in the app/config folder. 确实,behat.yml应该位于根文件夹中,但我已经阅读到有一种方法可以将其放入app / config文件夹中。
Anyway, putting it in the root folder does the trick. 无论如何,将其放在根文件夹中就可以了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.