Cucumber exists for different platforms such as Java, JavaScript, Ruby etc. Cucumber is a command-line tool, and how you install it depends on your platform.



Cucumber for Ruby is a ruby gem, and can be installed from the command line. After you have installed Ruby and RubyGems, install Cucumber with the following command:

$ gem install cucumber

Ruby on Rails

Before you can use the generator, add the gem to your project's Gemfile as follows:

    group :test do
      gem 'cucumber-rails', :require => false
      # database_cleaner is not required, but highly recommended
      gem 'database_cleaner'

Then install it by running:

    bundle install

Learn about the various options:

    rails generate cucumber:install --help

Finally, bootstrap your Rails app, for example:

    rails generate cucumber:install


Cucumber is published as several jar files in the central Maven repository. Installation is simply a matter of adding a dependency in your build file:


Add these dependencies to your project:





Cucumber.js is available as an npm module.

$ npm install cucumber


Behat is an official Cucumber implementation available as a Composer package.

$ composer require behat/behat

results matching ""

    No results matching ""