Skip to content

dbollaer/BehatWizardBundle

 
 

Repository files navigation

BehatWizardBundle

Dependencies

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

Demo

You can see a demo here

Preview

Listing

Edit feature

Installation

  1. Add the bundle and Behat to your project
  2. Enable the bundle
  3. Configure paths of behat features
  4. Enable translator
  5. Assetics

Add the bundle to your project

# 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]
    git=git@github.com:Halleck45/Gherkin.git
    target=/behat/gherkin
[behat]
    git=git://github.com/Behat/Behat.git
    target=/behat/behat

Enable the bundle

# 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(),

Activate routes

Edit your routing configuration:

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

Configure paths of behat features

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

Assetics

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

Translation

Remember to active the translator:

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

Common bugs

The list of features is never updated

-> it's probably due to Twig's cache. Add the following rule to your config.yml

twig:
  cache: false

About

GUI Tool for Behat's users and Product Owners

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.5%
  • PHP 10.5%