Command endpoint takes the files list as arguments and fix the formatting. All configurations can be modified.
Each step code style can be defined independently based on keywords (And
, Then
, Scenario
etc).
- All step keywords and tables (symbol:
|
) are right-aligned (ExceptScenario
,Feature
,Background
andExamples
). - All extra spaces inside table cells are deleted
- Table column width is determined by the longest cell in that column.
gherkin-fixer /path/to/test1.feature /path/to/test2.feature ...
You will also want to ensure that ./bin
& ./vendor/bin
is in your $PATH
and is the highest priority. ./node_modules/.bin
should be included in you $PATH
at the lowest priority. You can do so by adding the following to your shell profile:
export PATH=./bin:./vendor/bin:$PATH:./node_modules/.bin
Run docker_build
. This will build setup the project dependencies if they are not already and create a local docker image called local:gherkin_fixer
that you can use for testing
This project has PHPUnit testing. To run tests run phpunit
- PHP >= 7.1.0