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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.