Behat和Symfony2捆绑发行了吗? [英] Behat and Symfony2 bundle issue?

查看:40
本文介绍了Behat和Symfony2捆绑发行了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Symfony2软件包(2.2.2版)中的Behat(2.4.*@dev)初始化过程中遇到了一些问题.命令后:

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

问题出在哪里?

推荐答案

不确定Behat v2.4,但对于Behat v3.0,请将捆绑软件添加到behat.yml的'suites'指令中:

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: ~

这篇关于Behat和Symfony2捆绑发行了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆