PHPackages                             acseo/behat-generator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. acseo/behat-generator-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

acseo/behat-generator-bundle
============================

This Bundle allows you to generate .feature file for each route of your project.

230PHP

Since Oct 31Pushed 5y ago12 watchersCompare

[ Source](https://github.com/acseo/BehatGeneratorBundle)[ Packagist](https://packagist.org/packages/acseo/behat-generator-bundle)[ RSS](/packages/acseo-behat-generator-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

ACSEO Behat Generator Bundle
============================

[](#acseo-behat-generator-bundle)

Introduction
------------

[](#introduction)

This Bundle allows you to generate *.feature* file for each route of your project.

Installation
------------

[](#installation)

### Behat

[](#behat)

You don't need behat to generate the tests, but to run them. To add behat in your project, you can follow the procedure here : [http://docs.behat.org/en/v3.0/cookbooks/1.symfony2\_integration.html](http://docs.behat.org/en/v3.0/cookbooks/1.symfony2_integration.html)

```
$ composer require --dev behat/behat
$ composer require --dev behat/mink-extension
$ composer require --dev behat/mink-zombie-driver

```

Then your `behat.yml` file should look like :

```
# behat.yml
default:
    extensions:
        Behat\MinkExtension:
            base_url: "http://localhost:8000/"
            sessions:
                default:
                    zombie: ~
                javascript:
                    zombie: ~
    suites:
        default:
            contexts:
                - FeatureContext: { container: "@service_container" }

```

You will need to define a FeatureContext class :

```
