Swag is a ruby project.The demo scripts in this repository allow you to run simple automated tests in order to validate your Ruby testing environment for Saucelabs.
In order to complete these exercises you must complete the following prerequisite installation and configuration steps:
- Install Git
- Install Ruby
- Install an IDE
- Install Google Chrome
-
Clone this Repo
-
Run the following command
$ git clone swag https://github.com/rko619619/swag.git
-
-
Setup
Gemfile:-
Install
bundlerso that we can easily update and resolve dependencies:$ gem install bundler
-
-
Execute the
bundleCommand:-
Use the following to install the required
gems:$ bundle install --path .bundle -
You may also use 'Run Configurations' in your IDE. For directions on how to setup Run/Debug Configurations refer to Documentation:
-
- Run all specs in project:
$ rspec spec - Run tests in parallel on default configuration:
$ rake parallel - If you want run one test(for example)
$ rspec spec/features/sign_in_spec.rb: