Skip to content
A simple example demonstrating Cucumber-JVM using Ruby (JRuby) Step Definitions
Ruby Gherkin Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Gemfile
Gemfile.lock
README
pom.xml

README

This example project requires a recent version of cucumber-jvm for the World do block stuff

You can take the pom.xml as is, and then create a new project out of it.

Firstly, you run
    mvn test -Pinitial-bundle

To install the bundler gem and initialize a sample Gemfile.

Then you should add the src/test/gems directory and commit it. After that you should add the src/test/gems directory
to .gitignore so you don't add any more gems.

Now you can treat the Gemfile and Gemfile.lock as files to be committed to your repo, and any time someone runs the tests
the bundle install will be run, and that will make sure you always have the gems available for testing, and that any
updated gems are acquired and downloaded, but don't pollute your repo.

The tests are running twice to demonstrate running it from JUnit as well as from the CLI. So you should disable one of them once you have decided which way you want to invoke cucumber.

Hooray!
You can’t perform that action at this time.