cucumber-jvm icon indicating copy to clipboard operation
cucumber-jvm copied to clipboard

Generic annotation for @Given @When @Then @And

Open ntthaibk opened this issue 1 year ago • 5 comments

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

When I create the journey scenario. I use the * syntax in .feature file instead of normal Given When Then And. But then in those step's step definition, the @Given or @When @Then @And annotation is not able to differentiate the Journey step and normal integration test steps.

✨ What's your proposed solution?

I think another alias annotation for @StepDefinitionAnnotation is gonna be a good solution, it could be named either @Steps or @Journey

⛏ Have you considered any alternatives or workarounds?

For now I use @And as annotation for journey step

📚 Any additional context?

I don't know if we need to take into consideration for other framework that build on top of cucumber, because when I'm using Serenity, I think they already use @Step for another purpose


This text was originally generated from a template, then edited by hand. You can modify the template here.

ntthaibk avatar Mar 16 '23 06:03 ntthaibk