You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
Dan Kohn edited this page Jun 17, 2015
·
7 revisions
When you are Running Features it can sometimes be handy to pass special values to Cucumber so that they can be picked up in your Step Definitions. You can easily do this on the command line:
cucumber FOO=BAR --format progress features
You can now pick up ENV['FOO'] in ruby (for example in env.rb or a step definition) and take actions according to the value.
You can also do this in cucumber.yml. For example, this sets up a profile that runs a tag and sets an environment variable
baz: --tags @mytag FOO=BAR
See Debugging for an example of using environment variables to trigger several debugging options.