Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.27 KB

README.md

File metadata and controls

26 lines (18 loc) · 1.27 KB

cucumber-browserstack

This repository provides information and helpful tweaks to run your Cucumber tests on the BrowserStack selenium cloud infrastructure.

Setup

  • Clone the repo
  • Install dependencies bundle install
  • To test various sample repositories with ease, it is recommended to setup BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY environment variables. Alternatively you can directly update *.config.yml files inside the config/ directory with your BrowserStack Username and Access Key

Running your tests

  • 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!