How to migrate from TypeRegistryConfigurer? #2249
Unanswered
ian-pascoe
asked this question in
Q&A Java
Replies: 1 comment 4 replies
-
Currently there is no support for that. Parameter types are ultimately matched against feature files. And the assumption is that feature files are known at compile time. This doesn't seem to be the case in your situation. Could you elaborate on that? Alternatively would it be possible to use a regex that matches superset of all possible values and then at run time restrict which values are actually valid? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now we are on cucumber v6.11 and we would like to upgrade to v7. We cannot use the @ParameterType annotation because our regex is derived from a collection of constants at runtime. TypeRegistryConfigurer allowed us to use the derived value as a parameter type like so:
How can we approach this in v7?
Beta Was this translation helpful? Give feedback.
All reactions