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

Code generation #54

Closed
sagikazarmark opened this issue Jan 17, 2020 · 3 comments
Closed

Code generation #54

sagikazarmark opened this issue Jan 17, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@sagikazarmark
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I've used a number of different gherkin based BDD frameworks in the past and code generation was always a killer feature.

Even if it only meant dumping missing steps to the console, it was always a huge help.

Describe the solution you'd like
I think there are several things we could do here:

  • godog just dumps the missing steps (with regex) to the console, which is nice.
  • We could generate a default file (features_test.go ?) with the same (probably a bit more) content (if it doesn't already exist)
  • probably more?

Additional context
I wouldn't say this should have the highest priority, especially compared to the required work vs benefit, but it's worth talking about.

This would also require a CLI tool.

@sagikazarmark sagikazarmark added the enhancement New feature or request label Jan 17, 2020
@bkielbasa
Copy link
Collaborator

That's definitely something I was planning to add but cannot do that as long as the API isn't stable.
I like what godog does here - the user has to only copy + paste the code and fill the gaps.

About generating any files - it will be more difficult because we'll have to give some options to use like change file/directory and the package's name etc. Dumping missing steps sounds great to me :)

@bkielbasa
Copy link
Collaborator

I think this is a duplication of #15.

@sagikazarmark
Copy link
Collaborator Author

Yeah, they cover similar points. We can merge the two issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants