Setup Ruby Framework
Install Ruby
- MacOS/Linux
- Windows
Test Evolve recommend using a ruby manager to manage your ruby installations on unix systems. A list of managers can be found on the Ruby site.
We recommend RVM and this can be installed as follows:
- Navigate to https://rvm.io/rvm/install.
- In a terminal window, execute the command from the site to 'Installing the stable release version'. Which may be something like this:
\curl -sSL https://get.rvm.io | bash -s stable --auto-dotfiles
- Once installed, close the terminal window and open a fresh one.
- Run
rvm install 3.1.4
from the terminal window. - Ensure this version of ruby is used by default by running
rvm use 3.1.4 --default
.
Once complete, Ruby and all necessary dependencies should be installed.
Download the Ruby installer Ruby+Devkit 3.1.4-1 (x64) from rubyinstaller.org and execute it to install ruby on your Windows machine. During the installation, ensure you select the option to 'add Ruby executables to your path'.
Starting with Ruby 3.1.4 the MSYS2 devkit is being used. This allows download and usage of open source libraries that gems can depend on. The installation of this kit is downloaded as part of the last step of the Rubyinstaller installation. Select Option 3 to install "MSYS2 and MINGW development toolchain".
Return to the Next Step of the Quick Start Guide
Install IDE
To edit and execute the test scenarios an IDE is required. TestEvolve recommends using RubyMine, which is a fully featured ruby development environment and gives a trial period of 30 days before a license is required.
Alternatives include Visual Studio Code or using a text editor such as Atom, which both have several plugins for formatting and executing Cucumber test scenarios.
Return to the Next Step of the Quick Start Guide
Troubleshooting
Please see troubleshooting