Support asterisks as continuation steps on par with And and But#617
Closed
Artalus wants to merge 3 commits intopytest-dev:masterfrom
Closed
Support asterisks as continuation steps on par with And and But#617Artalus wants to merge 3 commits intopytest-dev:masterfrom
Artalus wants to merge 3 commits intopytest-dev:masterfrom
Conversation
Collaborator
|
@youtux can we close this as it is now done and covered by a test in the test suite? |
Author
Collaborator
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.
Gherkin Documentation mentions you can uses
*(asterisk) to describe lists of things, same way as withAndsteps:Dunno if anybody actually needs such feature - since search for
asteriskdid not yield anything neither in PRs nor Issues. But since the change is literally 1 line of code, I thought I might propose it just as well and see what happens 😄Not sure if the place for testing it is right (
tests/feature/test_steps.py) or if it should be done someplace else tho.One (perhaps controversial) use-case that comes to mind, which would benefit from asterisks, is something like this:
It could be written as
Then we observe ... and its ...already, and would definitely be better with something likeFor foo ... its ...- but I think asterisks might still be a step in right direction.