PHPackages                             kbunel/behat-test-generator - 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. kbunel/behat-test-generator

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

kbunel/behat-test-generator
===========================

Generate automatic tests for all routes in you application, test that the response is good according to REST behavior.

07PHPCI failing

Since Mar 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kbunel/BehatTestGenerator)[ Packagist](https://packagist.org/packages/kbunel/behat-test-generator)[ RSS](/packages/kbunel-behat-test-generator/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

This project is not maintened anymore

Add a command to generate API with behat. This command will parse controllers to get the routes and determine create simple test. The tests expectations are based on the HTTP response according to the method.

Installation
============

[](#installation)

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require kbunel/behat-test-generator --dev
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require kbunel/behat-test-generator --dev
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
