This repository provides information and helpful tweaks to run your Cucumber tests on the BrowserStack selenium cloud infrastructure.
- Clone the repo
- Install dependencies
bundle install
- To test various sample repositories with ease, it is recommended to setup
BROWSERSTACK_USERNAME
andBROWSERSTACK_ACCESS_KEY
environment variables. Alternatively you can directly update*.config.yml
files inside theconfig/
directory with your BrowserStack Username and Access Key
- To run tests, run
bundle exec rake parallel
- To run local tests, run
bundle exec rake local
Understand how many parallel sessions you need by using our Parallel Test Calculator
Alternatively the variables can be set in the environment using env or your CI framework (like Travis or Jenkins)
Notice that selenium driver.quit is not required for Capybara tests because Capybara implicitly does so.
###Further Reading
Happy Testing!