Skip to content
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

Generate a feature file from a parsed document #3

Open
pligor opened this issue Nov 3, 2022 · 1 comment
Open

Generate a feature file from a parsed document #3

pligor opened this issue Nov 3, 2022 · 1 comment
Labels
⚡ enhancement Request for new functionality

Comments

@pligor
Copy link

pligor commented Nov 3, 2022

🤔 What's the problem you're trying to solve?

As one has the Parser like here:

parser = Parser()
gherkin_document = parser.parse("Feature: ...")

and has changed/updated a few elements of the gherkin_document (which is really just a dictionary in Python)
Isn't it logical for many instances to want to re-generate the feature file ?

✨ What's your proposed solution?

A script which extracts the information from within the Parsed Gherkin document and generates a valid .feature file with this feature

⛏ Have you considered any alternatives or workarounds?

If there is not none already the only way to go is to build one myself but for this community it would be a more mature solution if you could integrate it in this repo

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

@mpkorstanje
Copy link
Contributor

I believe that we already have some of this functionality for Java and Javascript. It doesn't exist (yet) for Python.

I reckon a pull requests would be welcome.

https://github.com/cucumber/common/tree/main/gherkin-utils#prettygherkindocument-messagesgherkindocument-syntax-gherkin--markdown

@mpkorstanje mpkorstanje transferred this issue from cucumber/common Nov 8, 2022
@mpkorstanje mpkorstanje transferred this issue from cucumber/gherkin Nov 8, 2022
@mattwynne mattwynne transferred this issue from cucumber/common Nov 20, 2022
@kieran-ryan kieran-ryan added the ⚡ enhancement Request for new functionality label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

3 participants