malukenho/kawaii-gherkin

A small library to check and fix annoying gherkin code style

Maintainers

๐Ÿ‘ malukenho

Package info

github.com/malukenho/kawaii-gherkin

pkg:composer/malukenho/kawaii-gherkin

Statistics

Installs: 99โ€‰391

Dependents: 1

Suggesters: 5

Stars: 49

Open Issues: 6

1.0.0 2024-07-03 14:57 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 5142eecbae4a3529560d607410a753b4a1e0386e

  • Jefersson Nathan <malukenho.woop@phpse.net>

gherkinCode stylecode standard


README

๐Ÿ‘ Latest Stable Version
๐Ÿ‘ Total Downloads
๐Ÿ‘ Latest Unstable Version
๐Ÿ‘ License

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