Skip to content

Latest commit

 

History

History
 
 

java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Using Cucumber with Java

This directory contains code to demonstrate how Cucumber can be used to develop Java code.
You need JRuby 1.1.3 or higher installed and JRuby’s bin directory on your PATH.

Installing required gems

jruby -S gem install aslakhellesoy-cucumber
jruby -S gem install diff-lcs

Running the scenarios

Open a shell in this directory (java) and execute the following command:


jruby -S rake features

This will compile the java code and package it in a jar file, and then run Cucumber against
that code.

There is a deliberate error. See if you can fix it!