-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
step transformations #986
Comments
Can you show us a concrete example please @akostadinov? I'm struggling to visualise exactly what you mean. |
e.g. a step like And then this call will not be matched:
Step needs to be modified to this for such use case to work: But now I read It looks like the transform step is matching individual matches instead of whole step string. I guess that this feature just can't work this way. Maybe another transform hook is needed if whole step string is to be transformed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. |
This issue has been automatically closed because of inactivity. You can support the Cucumber core team on opencollective. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello, right now I see that cucumber does:
I am trying to understand why that has been chosen. To me it makes more sense to do it the other way around. i.e. first transform and then match the steps.
In our test suite we decided to make <%= ... %> expressions expand to some ruby expression inside. Issue is that if step for example matches \w+ then using such expression in place doesn't work. It is not such a big deal as quotes can be used for parameters. Just a little harder to write the quotes.
But I thought to propose making transformation happen before matching unless there are good reasons to keep current approach.
Thank you.
The text was updated successfully, but these errors were encountered: