New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gherkin-js: Reverse GherkinDocument back to Feature #299
Comments
I'd like to know in what this context this would be useful, and how this would be better than just reading the source from disk. |
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. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
@mlapeyre3 is there anything missing from gherkin-assembler? If not I think we can close this issue. |
HI @aslakhellesoy, sorry I did not follow-up my latest post. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
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?
Expected Behavior
Something like:
Current Behavior
I did not find any methods like this in the code.
Context & Motivation
It would be super nice to handle a
getFeature()
method. It's easier to handle the json-formatted GherkinDocument than a pure string like a .feature file.Thanks !
The text was updated successfully, but these errors were encountered: