tsslabs/behat-builder-bundle

用于在 Symfony2 项目中构建和维护场景的 Behat 构建器界面

安装: 68

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 0

语言:JavaScript

类型:symfony-bundle

dev-master 2014-04-11 15:49 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:29:18 UTC


README

在浏览器中直接维护 Symfony2 项目的 Behat 功能

安装说明

  • 最简单的安装方式是通过 composer,执行 composer.phar require tsslabs/behat-builder-bundle

    或者

    将以下行添加到 ./composer.json

    ```
    "require": {
      ...
      "tsslabs/behat-builder-bundle": "dev-master"
    }
    ```
    

    然后运行 composer.phar install

  • 然后在 ./app/AppKernel.php 中启用该包

    public function registerBundles()
    {
        $bundles = array(
                ...
                new TSS\BehatBuilderBundle\TSSBehatBuilderBundle(),
            );
    }
    

- Add routing:
      ```
  tss_behat_builder:
     resource: "@TSSBehatBuilderBundle/Controller/"
     type:     annotation
     prefix:   /
      


- Symlink assets: 

      ```
    php app/console assets:install --symlink web
      ```
      
- Dump assetic: 

      ```
    php app/console assetic:dump web
      ```

- Enable the bundle in assetic:
      ```
    assetic:
        (...)
        bundles:        [ TSSBehatBuilderBundle ]
      ```

@TODO:
 - add lexical parser and autocompleter

Enjoy :)