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' end
Then install it by running:
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:
<dependency> <groupId>info.cukes</groupId> <artifactId>cucumber-java</artifactId> <version>1.2.4</version> <scope>test</scope> </dependency> <dependency> <groupId>info.cukes</groupId> <artifactId>cucumber-junit</artifactId> <version>1.2.4</version> <scope>test</scope> </dependency>
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
SpecFlow uses a test runner to run the tests. Currently NUnit, xUnit, MsTest, mbUnit and the SpecFlow+ Runner (aka SpecRun) are the supported runners. For each runner there is a configuration package on NuGet that installs and configures the core package (e.g. SpecFlow.NUnit).
PM> Install-Package SpecFlow.NUnit