Skip to content

Cucumber support for the JVM: Java, Scala, Groovy, Clojure, Ioke, Javascript, Spring, Guice, PicoContainer, WebDriver, Ant and Maven [Fixed optional capture groups in step definitions. See the optional-capture-groups branch or https://github.com/cucumber/cuke4duke/pull/124 for more info]

License

Notifications You must be signed in to change notification settings

bcluca/cuke4duke

 
 

Repository files navigation

Cuke4Duke

Cuke4Duke is an addon to Cucumber, making it possible to write step definitions in several different JVM languages.

Building Cuke4Duke

First of all, you need Maven installed.
Then you’ll need git

You’ll also need JRuby installed to build Cuke4Duke. If you’re on OS X or Linux it’s recommended you install JRuby
with RVM

With JRuby installed – bootstrap your environment by installing some gems:

Using RVM:


mkdir -p /.m2/repository/.jruby
GEM_HOME=
/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby gem install bundler
GEM_HOME=~/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby /.m2/repository/.jruby/bin/bundle install
GEM_HOME=
/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby ~/.m2/repository/.jruby/bin/rake install

Not using RVM:


mkdir -p /.m2/repository/.jruby
GEM_HOME=
/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby jruby -S gem install bundler
GEM_HOME=~/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby jruby -S bundle install
GEM_HOME=~/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby jruby -S rake install

With the gems installed, build the whole shebang (including the examples):

Using RVM:

GEM_HOME=~/.m2/repository/.jruby GEM_PATH=~/.m2/repository/.jruby ~/.m2/repository/.jruby/bin/rake build_all

Not using RVM:

jruby -S rake build_all

Release process

First, bump the release number:

rake remove_snapshots

Build again:

rake build_all

If all is OK, commit:

git commit -m "Release"

And release:

rake release

Finally, bump version:

rake add_snapshots

And commit again:

git commit -m "Starting new development cycle"

About

Cucumber support for the JVM: Java, Scala, Groovy, Clojure, Ioke, Javascript, Spring, Guice, PicoContainer, WebDriver, Ant and Maven [Fixed optional capture groups in step definitions. See the optional-capture-groups branch or https://github.com/cucumber/cuke4duke/pull/124 for more info]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 69.1%
  • Scala 19.5%
  • Ruby 5.5%
  • Groovy 2.8%
  • Gosu 1.1%
  • Ioke 1.0%
  • Other 1.0%