You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have some very specific feature files that have long tests that validate multiple things written in non-english language, the Given -> When -> Then structure doesn't make sense here. I tried replacing feature file keywords with *, and that works just fine, however the problem is the step definition is not logical.
There doesn't seem to be any way to have a "universal" annotation to use for asterisk steps, only Given, When, Then, And, But exists. It's not very logical to have a * Some step in a feature and @Given("Some step") definition.
Additionally (but this would be IntelliJ IDEA problem) if I'm trying to generate a step definition from a new step in this form - * Some step - the generation intent doesn't function at all, probably because there is no annotation to assign when asterisk is used.
Describe the solution you'd like
An additional annotation that would correctly reflect the asterisk step in feature file and would function when generating the step definition, something like @Step("Some step") would be just fine.
Describe alternatives you've considered
Using different language for Given -> When -> Then steps doesn't make sense either due to test structure, which is too complex, and does multiple validations within the test. Not the best practice, I'm fully aware, but in my case unavoidable due to project specifics.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two months if no further activity occurs.
Is your feature request related to a problem? Please describe.
I have some very specific feature files that have long tests that validate multiple things written in non-english language, the
Given -> When -> Then
structure doesn't make sense here. I tried replacing feature file keywords with *, and that works just fine, however the problem is the step definition is not logical.There doesn't seem to be any way to have a "universal" annotation to use for asterisk steps, only
Given
,When
,Then
,And
,But
exists. It's not very logical to have a* Some step
in a feature and@Given("Some step")
definition.Additionally (but this would be IntelliJ IDEA problem) if I'm trying to generate a step definition from a new step in this form -
* Some step
- the generation intent doesn't function at all, probably because there is no annotation to assign when asterisk is used.Describe the solution you'd like
An additional annotation that would correctly reflect the asterisk step in feature file and would function when generating the step definition, something like
@Step("Some step")
would be just fine.Describe alternatives you've considered
Using different language for
Given -> When -> Then
steps doesn't make sense either due to test structure, which is too complex, and does multiple validations within the test. Not the best practice, I'm fully aware, but in my case unavoidable due to project specifics.The text was updated successfully, but these errors were encountered: