halleck45/behat-wizard-bundle

此包提供图形界面来管理您的功能

安装: 536

依赖项: 0

建议者: 0

安全: 0

星标: 91

关注者: 19

分支: 20

开放问题: 0

语言:JavaScript

类型:symfony-bundle

v0.2 2012-07-30 16:29 UTC

This package is auto-updated.

Last update: 2024-09-17 23:45:37 UTC


README

Dependencies

Behat用户GUI工具。

此工具帮助产品经理管理他们的功能。他们可以

  • 列出功能并了解每个功能的状况
  • 通过状态、标签等过滤功能
  • 编辑功能
  • 添加新功能

已弃用

此工具已弃用。请优先考虑独立的BddWizard

演示

您可以在这里看到演示

预览

Listing

Edit feature

安装

### 更新您的composer文件

"require-dev": {
    "halleck45/behat-wizard-bundle": "dev-master"
}

启用包

# app/AppKernel.php
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    // ...
    $bundles[] = new Hal\Bundle\BehatWizard\HalBehatWizardBundle();
}

激活路由

编辑您的路由配置

# app/config/routing.yml
HalBehatWizard:
  resource: "@HalBehatWizardBundle/Resources/config/routing.yml"
  prefix: /

配置behat功能的路径

将以下行添加到您的config.yml文件中

parameters:
  behat.paths.base: /path/to/project/
  behat.paths.features: /path/to/project/features
  behat.paths.reports: /path/to/project/reports

注意,您需要使用JUnit格式化参数运行Behat,以便生成JUnit格式的报告

$ behat -f junit --out /path/to/project/reports

如果您使用Behat的配置文件,可以使用此配置

formatter:
  name:                   pretty,junit
  parameters:
    output_path:          null,build/behat

资产

php app/console assets:install --symlink web
php app/console assetic:dump web

并编辑您的配置文件

assetic:
    (...)
    bundles:        [ HalBehatWizardBundle ]

翻译

请记住激活翻译器

# app/config/config.yml
framework:
  translator: { fallback: en }

### 使用它!

只需访问/app_dev.php/behat/wizard/list

常见错误

功能列表永远不会更新

-> 这可能是因为Twig的缓存问题。将以下规则添加到您的config.yml中

twig:
  cache: false