Skip to content

jackmakiyama/kawaii-gherkin

This branch is 21 commits behind malukenho/kawaii-gherkin:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

634a3ad · May 13, 2016
May 12, 2016
Mar 30, 2016
May 12, 2016
Jan 28, 2016
Jan 30, 2016
Jan 30, 2016
Jan 28, 2016
Feb 8, 2016
Mar 15, 2016
Jan 30, 2016
Mar 20, 2016

Repository files navigation

Kawaii Gherkin

Build Status Code Coverage Scrutinizer Code Quality 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

About

A Kawaii and small tool to fix and validate gherkin code styles.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.4%
  • Gherkin 3.2%
  • Shell 0.4%