Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Maven support for Cucumber (java)
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/main/java/cucumber/mojo
README.textile
pom.xml

README.textile

Cucumber Maven Plugin

A simple cucumber maven plugin. Written by Øystein Ellingbø (ellingbo) and Ole Christian Rynning (oc) :-)

How to use?

  • Install jruby
  • Add to your maven2 settings.xml (~/.m2/settings.xml):
  <pluginGroups>
    <pluginGroup>cucumber.mojo</pluginGroup>
  </pluginGroups>

Command line

mvn cucumber:features -Dcucumber.features.directory=examples/simple/features -Djruby.home=/opt/jruby-1.2.0

Configure in your project POM

<build>
  <plugins>
    <plugin>
      <groupId>cucumber.mojo</groupId>
      <artifactId>cucumber-maven-plugin</artifactId>
      <configuration>
        <jrubyHome>/path/to/jruby</jrubyHome>
        <featuresDirectory>/path/to/features</featureDirectory>
      </configuration>
    </plugin>
  </plugins>
</build>

By default it scans for features in src/test/features.

Something went wrong with that request. Please try again.