GUI Tool for Behat users.
This tool helps Product Owners to manage their features. They can:
- list their features and know the state of each feature
- filter features by state, tag, etc...
- edit features
- add new features
You can see a demo here
- Add the bundle and Behat to your project
- Enable the bundle
- Configure paths of behat features
- Enable translator
- Assetics
# deps
[BehatWizardBundle]
git=git://github.com/Halleck45/BehatWizardBundle.git
target=/bundles/Hal/Bundle/BehatWizard
[BehatToolsBundle]
git=git://github.com/Halleck45/BehatToolsBundle.git
target=/bundles/Hal/Bundle/BehatTools
[gherkin]
[email protected]:Halleck45/Gherkin.git
target=/behat/gherkin
[behat]
git=git://github.com/Behat/Behat.git
target=/behat/behat
# app/autoload.php
'Hal\\Bundle' => __DIR__.'/../vendor/bundles',
'Behat\\Gherkin' => __DIR__.'/../vendor/behat/gherkin/src',
'Behat\\Behat' => __DIR__.'/../vendor/behat/behat/src',
'Behat\\Mink' => __DIR__.'/../vendor/behat/mink/src',
# app/AppKernel.php
new Hal\Bundle\BehatTools\HalBehatToolsBundle(),
new Hal\Bundle\BehatWizard\HalBehatWizardBundle(),
Edit your routing configuration:
# app/config/routing.yml
HalBehatWizard:
resource: "@HalBehatWizardBundle/Resources/config/routing.yml"
Add the following lines to your config.yml file:
parameters:
behat.paths.base: /path/to/project/
behat.paths.features: /path/to/project/features
behat.paths.reports: /path/to/project/reports
Note that you need to run Behat with the junit formater parameter, in order to generate reports in JUnit format:
$ behat -f junit --out /path/to/project/reports
php app/console assets:install --symlink web
php app/console assetic:dump web
Remember to active the translator:
# app/config/config.yml
framework:
translator: { fallback: en }
-> it's probably due to Twig's cache. Add the following rule to your config.yml
twig:
cache: false