josephwilk / cucumber_java forked from aslakhellesoy/cuke4duke

Cucumber packaged in a Jar file with pure Java support.

This URL has Read+Write access

README.textile

Have a Cuke, Duke

Cucumber-Java lets you write Cucumber steps in pure Java. Example:

public class StuffSteps {
    @Given("I have (\\d+) (.*) cukes")
    public void iHaveNCukes(String n, String color) {
        this.cukes.put(color, n);
    }
}

Cucumber-Java also brings you first-class Maven support.

Building the cucumber-java gem

This is for hackers. If you just want to use Cucumber with Java, head straight to
the examples.

Install Maven

You can grab it here

Install JRuby

You can grab it here
Make sure you get 1.2.0 or later.

Install Hoe

This gem is needed to build the Cucumber Java gem

jruby -S gem install hoe --no-rdoc --no-ri

Build and install the gem

jruby -S rake gem
jruby -S gem install pkg/cucumber-java --no-rdoc --no-ri

Now head to the simple example and run it. It serves well as a testbed.