PHPackages                             lucatume/codeception-steppify - 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. lucatume/codeception-steppify

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lucatume/codeception-steppify
=============================

Generate Gherkin steps from Codeception Modules.

1.0.6(5y ago)496.4k↓35.1%4[2 issues](https://github.com/lucatume/codeception-steppify/issues)[5 PRs](https://github.com/lucatume/codeception-steppify/pulls)1GPL-2.0PHP

Since Dec 8Pushed 2y ago2 watchersCompare

[ Source](https://github.com/lucatume/codeception-steppify)[ Packagist](https://packagist.org/packages/lucatume/codeception-steppify)[ RSS](/packages/lucatume-codeception-steppify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (12)Used By (1)

Steppify

*Generate Gherkin steps from Codeception modules.*

[![Build Status](https://camo.githubusercontent.com/345f09b898161d1d5cc87526753cf3c6a1fcc97078f859bd2cfb2222c6a247df/68747470733a2f2f7472617669732d63692e6f72672f6c75636174756d652f636f646563657074696f6e2d73746570706966792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lucatume/codeception-steppify)

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

[](#installation)

Install this package using [Composer](https://getcomposer.org/):

```
composer require --dev lucatume/codeception-steppify
```

and then add the command to the custom commands used by your project following [Codeception documentation](http://codeception.com/docs/08-Customization#Custom-Commands) on the subject:

```
extensions:
    commands: [tad\Codeception\Command\Steppify]
```

Usage
-----

[](#usage)

The command will generate traits usable in [Codeception](http://codeception.com/ "Codeception - BDD-style PHP testing.") tester classes from codeception modules.
As an example I might want to generate [Gherkin](!g) steps to use Codeception own \[PhpBrowser\](!g codeception PhpBrowser module) module methods in Gherkin features:

```
codecept gherkin:steppify PhpBrowser

```

The command will generate `PhpBrowserGherkinSteps.php`, a PHP `trait` file, in the tests `_support/_generated` folder. To start using the new methods all that's required is to add a `use` statement for the `PhpBrowserSteps` trait in the suite `Tester` class:

```
