Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Environment Variables

aslakhellesoy edited this page Aug 13, 2010 · 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,

Clone this wiki locally