Skip to content
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Using JRuby

Run the features:

jruby bin/cucumber-jvm --glue src/test/resources src/test/resources resource bundle

There is a resource bundle available to override a few environment variables for jruby. Specifically, the ability to set the GEM_PATH and to specify whether to run jruby in 1.8 or 1.9 mode.

If the properties file is not present in the root of the classpath, any environment variables will operate as intended, otherwise the properties file will override the environment. Makes it much easier to run the features from within the IDE, and it encapsulates the settings in the project source tree easily.

Example file


When filtered by the maven properties file, it will set Jruby's GEM_PATH to src/test/gems (expanded out to the full file system) so that Jruby can find any Gems you might be using.

The constructor of has the currently supported properties.


Something went wrong with that request. Please try again.