-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use the result type 'ambiguous' for ambiguous step matches. #1815
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
base: main
Are you sure you want to change the base?
Conversation
Cucumber-Messages has a separate test step result status 'AMBIGUOUS', therefore cucumber-ruby should use the test result type 'ambiguous' for ambiguous step matches.
* Use unskippable actions for ambiguous steps so they are identified also after failing steps or in dru run mode.
luke-hill
left a comment
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.
5/7 files reviewed and approved. 2 files not yet looked at.
In terms of CI this failure looks related to your PR Bjorn
|
We probably also want to pin core to have a minimum version of the last released (When I get around to it) |
luke-hill
left a comment
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.
Reviewed another file and made sense of it. Only LOC I need to review now is tagged (Might need help)
|
|
||
| def activate(test_step) | ||
| test_step.with_action { raise @error } | ||
| test_step.with_unskippable_action { raise Core::Test::Result::Ambiguous, @error.message } |
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.
This single LOC
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.
The point of using test_step.with_unskippable_action is so that also after a failed/pending/undefined/ambiguous step, an ambiguous step is marked as ambiguous. Raising the Core::Test::Result::Ambiguous is what makes the test result ambiguous
Description
Cucumber-Messages has a separate test step result status 'AMBIGUOUS', therefore cucumber-ruby should use the test result type 'ambiguous' for ambiguous step matches.
This is specifically needed for cck v22 conformance where examples with ambiguous step matches are included (#1806).
Requires cucumber-ruby-core#311
Type of change
Please delete options that are not relevant.
Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.
Checklist:
Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.
bundle exec rubocopreports no offenses