Share your code.
Parse gherkin feature files.
$ npm install gherkin-parser
const gherkin =const fs =fs
The parser turns cucumber files into AST. An example:
Feature: Can drink beer when thirstyAs a drinkerI want to take beer off the wallIn order to satisfy my thirstScenario: Can take a single beerGiven 100 bottles of beer on the wallWhen a bottle is taken downThen there are 99 bottles of beer on the wall
feature: 'Can drink beer when thirsty'perspective: 'drinker'desire: 'to take beer off the wall'reason: 'to satisfy my thirst'scenarios:scenario: 'Can take a single beer'given:'100 bottles of beer on the wall'when:'a bottle is taken down'then:'there are 99 bottles of beer on the wall'
transformStream = gherkin()
Create a gherkin transform stream. Transforms gherkin
.feature files into an