josephwilk / cucumber_java forked from aslakhellesoy/cuke4duke
- Source
- Commits
- Network (26)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History.txt | ||
| |
README.textile | ||
| |
cucumber-java/ | ||
| |
cucumber-maven-plugin/ | ||
| |
examples/ | ||
| |
pom.xml |
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.

