go-bdd / gobdd

BDD framework
https://go-bdd.github.io/gobdd/
MIT License
115 stars 19 forks source link

Code generation #54

Closed sagikazarmark closed 4 years ago

sagikazarmark commented 4 years ago

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:

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.

bkielbasa commented 4 years ago

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 commented 4 years ago

I think this is a duplication of #15.

sagikazarmark commented 4 years ago

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