Cucumber tags at runtime? #2283
|
An external library uses scenario tags for its own purposes. Are there any ways to add tags to scenarios at runtime or during plugin initialization? |
Answered by
mpkorstanje
Oct 1, 2025
Replies: 1 comment
|
Cucumber takes its tags from Pickles, which are produced by the Gherkin Parser. So you'd either have to put a decorator on the parser to make that possible. Or pre-process your feature files. Currently the parser is not easily substituteable in Cucumber JVM. If you are interested in contributing towards a solution to make that possible, feel free to create an issue in Cucumber JVM. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cucumber takes its tags from Pickles, which are produced by the Gherkin Parser. So you'd either have to put a decorator on the parser to make that possible. Or pre-process your feature files.
Currently the parser is not easily substituteable in Cucumber JVM. If you are interested in contributing towards a solution to make that possible, feel free to create an issue in Cucumber JVM.