Cucumber runs on top of "ruby on rails" (ror). To install ror, go to:
Now set the path variable:
in cmd you do:
in powershell you do:
Now we create a folder to house all our rails projects e.g.:
Now within this directory you create your first project:
PS C:\Users\Mir\RailsProjects> rails new cucumberproject1
This will create a new folder by this name and within this folder it will contain the project files.
next, cd into the project and install the relevent gems using the gemfile.conf file, insert the following at the bottom of the file:
group :CucumberGems do gem 'cucumber-rails' gem 'database_cleaner' end
Next, while in the project folder, run:
this will read the gemfile and download the specified gems. note you need internet connection for this because it downloads gems from the internet and installs them.
you can also do:
if you made a change to gemfile and want to do an update.
Next you need to install cucumber, while in the project folder, do:
rails generate cucumber:install
this command will create a new "features" folder, this is where all your cucumber files goes in.