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
Allow Examples table to include values not used in steps #391
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #391 +/- ##
==========================================
+ Coverage 95.51% 95.95% +0.44%
==========================================
Files 50 50
Lines 1649 1656 +7
Branches 149 149
==========================================
+ Hits 1575 1589 +14
+ Misses 45 41 -4
+ Partials 29 26 -3
Continue to review full report at Codecov.
|
@youtux, it seems that you were the last person to touch this code. Would you be able to review this PR, or else how do I request a review given that I don't have write access to the repo? |
@hicksjduk Could you please rename the pull request to something like "Allow store values in Examples not used in steps" to show the real value of this feature @youtux Please review |
Done. |
Changed validation of a scenario against its examples table so that the list of parameters defined for the scenario does not have to be the same as the list of parameters defined in the examples table, but can be a subset. This allows columns to be specified in the examples table that are not used in the scenario, but are there for future use or purely for documentation purposes.
43da4e8
to
f9d775f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cucumber (gherkin lint) uses no-unused-variables rule to optionally raise on this. @youtux Do you think we need to make it an option?
Isn't this a rule in the linter that checks the implementation code? Not in the functionality that implements the gherkin bindings. I can't find any reference in the cucumber documentation to this rule. |
@hicksjduk Oleg means https://www.npmjs.com/package/gherkin-lint |
I think we should just allow examples to include values that are not used. I wouldn't make it an option, I find it unnecessary complication. |
for more information, see https://pre-commit.ci
@olegpidsadnyi please review |
See #390 for a description of the error to which this is a fix.