malukenho / kawaii-gherkin
A small library to check and fix annoying gherkin code style
Installs: 92 002
Dependents: 2
Suggesters: 5
Security: 0
Stars: 49
Watchers: 5
Forks: 7
Open Issues: 7
Requires
- php: ~5.5|^7.0
- behat/gherkin: ^4.4
- sebastian/diff: ~1.2
- symfony/console: ~2.0|^3.0
- symfony/finder: ~2.0|^3.0
Requires (Dev)
- phpunit/phpunit: ^4.0
This package is auto-updated.
Last update: 2024-03-29 03:37:21 UTC
README
Kawaii Gherkin is a small tool to fix and verify gherkin code style.
Installing
$ composer require --dev malukenho/kawaii-gherkin
Analyzing code
To analyze code style, simple run:
$ vendor/bin/kawaii gherkin:check [--align [right|left]] <directory>
Fixing code
To fix code style, simple run:
$ vendor/bin/kawaii gherkin:fix [--align [right|left]] <directory>
Example
Before
@users @another-feature @kawaii Feature: User registration In order to order products As a visitor I need to be able to create an account in the store Background: Nice Background Given store has default configuration And there are following users: | email | password | | bar@bar.com | foo1sasdasdasdadsasd | And the following customers exist: | email | | customer@email.com | And the following zones are defined: | name | type | members | | Poland | country | Poland | And the following orders exist: | customer | address | | customer@email.com | Jan Kowalski, Wawel 5 , 31-001, Kraków, Poland |
After
@users @another-feature @kawaii Feature: User registration In order to order products As a visitor I need to be able to create an account in the store Background: Nice Background Given store has default configuration And there are following users: | email | password | | bar@bar.com | foo1sasdasdasdadsasd | And the following customers exist: | email | | customer@email.com | And the following zones are defined: | name | type | members | | Poland | country | Poland | And the following orders exist: | customer | address | | customer@email.com | Jan Kowalski, Wawel 5 , 31-001, Kraków, Poland |
Author
- Jefersson Nathan (@malukenho)