Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOWTO setup project

  1. install RVM
  2. open terminal and go to project folder
  3. install gem bundler - gem install bundler
  4. install all project gems - bundle install

ENV variables

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)

Run your tests

  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

Run your tests like a boss with Rspec :)

  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

About

Lviv Smart Automation Solution Hackathon app

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages