Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
A simple example demonstrating Cucumber-JVM using Ruby (JRuby) Step Definitions
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
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!