-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
[Gherkin language feature support] Gherkin can support StepMacros syntax? #2154
Comments
This looks similar to steps in steps in ruby, which is something we're advising heavily against. Ideally if you have lots of common steps, you should use that languages abstraction techniques. So in ruby this would be a module or a class, and similar in Java. Then you would call the methods in the steps. so something like.
|
This Stack Overflow thread: https://stackoverflow.com/a/23092261 Refers to this discussion: https://groups.google.com/g/cukes/c/DzE_kGZx94I/m/5rf__N31qvAJ which can be summarized as "Gherkin is a collaboration tool, not a programming language". What makes your request different? |
Thanks for your suggestion. You are right. Using some computer languages' techniques can resolve this problem too. But I would prefer to use
|
Oh, thanks for your information. Looks like my request is not different with the discussion. Some points from cucumber-waves-goodbye-to-givenscenario
I think we can't consider this problem If the IDE support to find and link the related scenario.
If the user need use this feature. IMHO, the key word
We don't focus on the output until we meet the failed testcase. |
I'm going to close this. We've briefly spoken about it in the committers meeting and async, and given this is something we are strongly advising against - all languages have their own paradigms. We advise using those. |
🤔 What's the problem you're trying to solve?
I have many colleagues to develop step functions. After some times, we have many similar steps or groups of step.
IMH, Using MacroSteps can help us manage the common steps.
✨ What's your proposed solution?
Some BDD framework support StepMacros.
In Chorus BDD, the example looks like:
In Behave, it looks like:
The issue discuss in pytest-bdd.
⛏ Have you considered any alternatives or workarounds?
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: