tsslabs / behat-builder-bundle
用于在 Symfony2 项目中构建和维护场景的 Behat 构建器界面
dev-master
2014-04-11 15:49 UTC
Requires
- php: >=5.3.2
- friendsofsymfony/jsrouting-bundle: 1.1.*
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 :)