Fix test suite compatibility with Cucumber 11.x - #107
Open
voxik wants to merge 1 commit into
Open
Conversation
Commit a1701d55f added `output_snippet_envelope` to `MessageBuilder`, which unconditionally sends a `snippet_text` request over the wire protocol whenever a step result is undefined, even during `--dry-run --no-snippets` runs. This bypasses the `--no-snippets` guard that only affects console formatters, because MessageBuilder is now always instantiated regardless of the selected formatter. Let FakeWireServer to silently return a neutral success response for messages that Cucumber may send unconditionally but that individual scenarios have no reason to handle. Assisted-by: Claude Sonnet 4.6
Contributor
|
@voxik thankyou for the bug. I'll be honest I never considered |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working of updating Cucumber in Fedora, I have hit test errors like this:
Looking around, it seems that these are also reproducible in CI:
https://github.com/cucumber/cucumber-ruby-wire/actions/runs/32449556323/job/96675300799
The reason for this error is that this commit added
output_snippet_envelopetoMessageBuilder, which unconditionally sends asnippet_textrequest over the wire protocol whenever a step result is undefined, even during--dry-run --no-snippetsruns. This bypasses the--no-snippetsguard that only affects console formatters, because MessageBuilder is now always instantiated regardless of the selected formatter.Originally, I was thinking about this workaround:
But maybe it might be better to let the
FakeWireServerto silently return a neutral success response for messages that Cucumber may send unconditionally but that individual scenarios have no reason to handle.