I have introduced a feature flag in my spring application application.yml
and I'd like to test both scenarios in which this feature flag is true/false.
I have my existing tests implemented with cucumber, and I've created a separate package where I'd like to put all my tests scenarios where the feature flag is enabled.
Only for the scenario's background step, I need the feature disabled, so I would like to have the possibility to enable/disable this flag value (flags.myfeatureflag-enabled
) through a cucumber step, in order to enable/disable it in tests scenarios. How is it possible to do so?