2
我正在使用Symfony 2(最新版本)框架,我想使用behat。无法在symfony上运行behat
我已经inited我的包里面的特点文件夹上下文/ FeatureConext.php和/xxx.feature
我behat.yml位于应用程序/配置文件夹Symfony的2 ,并期待这样的:
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'
如何准确地指定的路径,我的文件夹功能?
谢谢你。
behat.yml应位于项目根文件夹中,而不是位于app/config中。 – Pierre