- install RVM
- open terminal and go to project folder
- install gem bundler -
gem install bundler - install all project gems -
bundle install
MODE - global variable which describes devise type (desktop, tablet or mobile)
PLATFORM - global variable which describes platform of tablet/mobile device (android or ios)
BROWSER - global variable which describes browser (chrome, firefox or safari)
bundle exec rake test:all
will run all tests in all modes on all devises in all browsers
bundle exec rake test:<MODE>:all
will run all tests in mode on all devises in all browsers
bundle exec rake test:<MODE>:<BROWSER>
will run all tests in mode on all devises in browser
bundle exec rake test:<MODE>:<PLATFORM>:<BROWSER>
will run all tests in mode on devise in browser
MODE=desktop BROWSER=firefox bundle exec rspec spec/foo_spec.rb
MODE=tablet PLATFORM=ios BROWSER=safari bundle exec rspec spec/foo_spec.rb
MODE=mobile PLATFORM=android BROWSER=chrome bundle exec rspec spec/foo_spec.rb