Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
gherkin-js: Reverse GherkinDocument back to Feature #299
Hi there, I am using the gherkin library to parse a .feature file into a GherkinDocument.
I was wondering if there is a way to go back from a GherkinDocument object to a .feature string?
I did not find any methods like this in the code.
Context & Motivation
It would be super nice to handle a
Hi @aslakhellesoy ! Ok let me explain a bit more.
I am using
to parse a .feature file on server side and respond to my client application with a json-formatted GherkinDocument.
The client application can easily handle the Feature as a json object and manipulate the properties of the document (for display, editing, ...).
Now, let's say my application has an interface to add/remove tags of a given Scenario, and a button to export a .feature file back from the GherkinDocument.
It's easy to add the tag in the
I found https://www.npmjs.com/package/gherkin-assembler to fulfill my need but I have not tested it yet.