Is there any way to divide my cucumber features into different directories with different setups?
I’m creating a ‘premium’ version of my application with different features enabled behind feature toggles, and I need to somehow figure out how to divide my tests with different grouped setup.
If I could re-write the feature toggles .js file before each ‘premium’ test runs, this would get the job done.
Can cucumber tests be grouped, and be given different setups by group?
This sounds like a great fit for tags. You could use a
@premiumtag and apply it to any scenario that is only enabled in the premium version. You can run different sets of tests as follows: