To use cucumber-jvm-clojure in your project, add the following dependency to your pom.xml
:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-jruby</artifactId>
<version>2.0.1</version>
<scope>test</scope>
</dependency>
Run the features:
jruby bin/cucumber-jvm --glue src/test/resources src/test/resources
You can define GEM_PATH
to tell JRuby where to load gems from.
These values can be defined in any of the three places:
- In an Environment variable
- In a System property (for example
-DGEM_PATH=src/test/gems
- In a
cucumber.properties
properties file on yourCLASSPATH
.
Sample cucumber.properties
file:
GEM_PATH=${basedir}/src/test/gems