Skip to content
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

Support wildcards in optional sequences #305

Open
CLOVIS-AI opened this issue Sep 2, 2024 · 0 comments
Open

Support wildcards in optional sequences #305

CLOVIS-AI opened this issue Sep 2, 2024 · 0 comments
Labels
⚡ enhancement Request for new functionality

Comments

@CLOVIS-AI
Copy link

🤔 What's the problem you're trying to solve?

We commonly have multiple variants of sentences with a few small differences. For example:

  • Declare "this thing"
  • Declare "this thing" as "that person"

✨ What's your proposed solution?

The ability to declare an expression "Declare {string}( as {string})". If the second value is not provided, a suitable language-specific default is provided to the parameter instead (e.g. null).

⛏ Have you considered any alternatives or workarounds?

  • Declaring two sentences: leads to some duplication, feels like cucumber-expression features don't interact neatly with each other

📚 Any additional context?

I'm using cucumber-java, but since there are no examples in this repository, I assume this feature is lacking here and it's not an implementation-specific problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement Request for new functionality
Projects
Status: No status
Development

No branches or pull requests

2 participants