Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Installing gems

aslakhellesoy edited this page Sep 13, 2010 · 5 revisions

You need to install the cucumber gem in order to run cuke4duke. There are a couple of ways to do this.

Maven

With maven you declare what gems should be installed in your POM:

  <build>
    <plugins>
      <plugin>
        <configuration>
          <gems>
            <gem>cucumber --version 0.4.2</gem>

You also have to explicitly tell Cuke4Duke to install gems with a System property:

mvn integration-test -Dcucumber.installGems=true

You only need to do this once, or every time you add a new gem or change a version.

Ant

If your project is based on the Ant scripts that come with the examples, just run the install-gem macro.

Behind a proxy?

No worries. Rubygems has a --http-proxy option you can pass to it. Just add --http-proxy http://your.proxy:8080 to the Maven <gem> element, or add extra <arg> elements in the Ant install-gem macrodef.

Clone this wiki locally