-
Hassle free startup guide: http://www.swtestacademy.com/ruby-cucumber-and-capybara-on-windows/ (use this for installing ruby environment)
-
When receiving SSL error on Ruby gems Setup Ruby Windows: http://guides.rubygems.org/ssl-certificate-update/
- Clone the repo
- Install dependencies
bundle install - Update
*.config.ymlfiles inside theconfig/directory with your BrowserStack Username and Access Key
- To run a single test, run
bundle exec rake single - To run parallel tests, run
bundle exec rake parallel - To run local tests, run
bundle exec rake local - To simply run cucumber
cucumber features/feature_file.feature - To run with browserstack `cucumber features/feature_file.feature BROWSERSTACK=true
- To run tests in parallel
parallel_cucumber features
-
You can view your test results on the BrowserStack Automate dashboard
-
To test on a different set of browsers, check out our platform configurator
-
You can export the environment variables for the Username and Access Key of your BrowserStack account
export BROWSERSTACK_USERNAME=<browserstack-username> && export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>