Skip to content

STUDITEMPS/gherkin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gherkin Hex.pm

Coverage Status CircleCI

A Gherkin file parser written in Elixir. Parses .feature files and translates them to native Elixir terms for processing.

Extracted from https://github.com/meadsteve/white-bread

Installation

The package can be installed as:

def deps do
  [{:gherkin, "~> 2.0"}]
end

Example Usage

%Gherkin.Elements.Feature{scenarios: scenarios} = File.read!("test/features/coffee.feature") |> Gherkin.parse()
# Do something with `scenarios`

# Also supports file streams for larger files (must read by lines, bytes not supported)
%Gherkin.Elements.Feature{scenarios: scenarios} = File.stream!("test/features/coffee.feature") |> Gherkin.parse()

About

A Gherkin file parser written in Elixir. Extracted from https://github.com/meadsteve/white-bread.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%