Skip to content

Allow using "@" (at sign) in Gherkin step names#923

Closed
zenovich wants to merge 1 commit intoJetBrains:masterfrom
zenovich:allow_at_sign_in_steps
Closed

Allow using "@" (at sign) in Gherkin step names#923
zenovich wants to merge 1 commit intoJetBrains:masterfrom
zenovich:allow_at_sign_in_steps

Conversation

@zenovich
Copy link
Contributor

@zenovich zenovich commented Oct 3, 2024

This will allow steps like 'And @MyCustomGroup is a child of @ParentGroup' for those who use such custom syntax for variables in tests.
Note: It doesn't contradict Gherkin specifications as Gherkin tags (which have the similar syntax) are not allowed inside test steps.

@bartekpacia
Copy link
Member

Hi @zenovich, thanks for your contribution.

Is there a corresponding ticket in YouTrack?

Also, what is the "custom syntax for variables in tests"?

@zenovich
Copy link
Contributor Author

zenovich commented Jun 5, 2025

Hi @bartekpacia,
The corresponding ticket in YouTrack: https://youtrack.jetbrains.com/issue/IDEA-362706/
By the "custom syntax for variables in tests" I meant using custom (non-standard) variables in cucumber tests starting with '@' sign. We have some in our test system (for example, here).

Copy link
Member

@bartekpacia bartekpacia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, started a merge request internally.

this PR will be closed automatically once it lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants