Fix step definition output for Data Tables#411
Fix step definition output for Data Tables#411vearutop merged 2 commits intocucumber:mainfrom karfrank:fixtablestepdef
Conversation
This fixes incorrect step definition output for Data Tables. The PickleStepArgument_PickleTable type does not exist in the current messages-go version.
Codecov Report
@@ Coverage Diff @@
## main #411 +/- ##
=======================================
Coverage 83.72% 83.72%
=======================================
Files 26 26
Lines 2390 2390
=======================================
Hits 2001 2001
Misses 296 296
Partials 93 93
Continue to review full report at Codecov.
|
|
Good catch, thank you for fixing this. |
|
Hi @karfrank, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
|
Many thanks for merging my PR and the warm welcome @vearutop and @aslakhellesoy! |
Description
This fixes incorrect step definition output for Data Tables.
Motivation & context
The current code doesn't generate a correct function for Data Tables. The
PickleStepArgument_PickleTabletype does not exist in the currentmessages-gopackage.For example:
Generates the following output:
This output seems to be wrong:
There is no
PickleStepArgument_PickleTabletype defined in https://github.com/cucumber/messages-go/blob/v16.0.1/messages.go, so running the generated code results in the following error:The update in this PR changes the step definition output to:
which works as expected.
I hope this all makes sense and is helpful. Please let me know if there are any issues with this PR (it's my first contribution to this project). Thank you!
Type of change
Update required of cucumber.io/docs
I couldn't find anything about this in the docs.
Checklist: