cucumber / cucumber-expressions

Human friendly alternative to Regular Expressions
MIT License
152 stars 51 forks source link

Support wildcards in optional sequences #305

Open CLOVIS-AI opened 1 month ago

CLOVIS-AI commented 1 month ago

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

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

✨ 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?

📚 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.