0.0
No commit activity in last 3 years
No release in over 3 years
Format Gherkin Files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.6.2

Runtime

>= 2.12.2
 Project Readme

Formatter for Gherkin Files

Build Status Docker Build Downloads Latest Tag

This tool formats gherkin files.

Usage

run gherkin_format on a list of files

gherkin_format FEATURE_FILES

To replace files with their formatted counterpart add the option --replace.

To get detailed information in case of errors use --verbose.

To format gherkin files using a custom format, it's possible to specify a template using --template TEMPLATE. The template provided is a erb-template.

These templates are predefined:

  • markdown
  • multi_markdown

Usage with Docker

Assuming there are feature files in the current directory. Then call.

docker run -ti -v $(pwd):/src -w /src gherkin/format *.feature

This will mount the current directory within the Gherkin Format Docker Container and then check all feature files.

Installation

Install it with:

sudo gem install gherkin_format

After that gherkin_format executable is available.