How can I test different environments (e.g. development|test|production) in Cucumber?
问题 Take this scenario. I have a Google Analytics tracking code, and I only want it to show up in Production mode. So I might have two scenarios like this: Scenario: Don't embed tracking code in development or test mode Given the app is not in production mode When I go home Then I should really not see the tracking code Scenario: Embed tracking code in production mode Given the app is in production mode When I go home Then I should really see the tracking code So although I know how to check what