Integration Test Notes
March 17, 2019 ยท View on GitHub
See Yak Shaving Failing Integration Tests with React and Rails
CI
See the .travis.yml file, at the bottom, to see what driver is used by Travis.
DRIVER=selenium bundle exec rake
Codeship is set to use the default driver.
Driver Options
Support is included for the following drivers:
- Selenium Chrome (
DRIVER=selenium_chrome rspec) - Selenium Firefox (
DRIVER=selenium_firefox rspec)
You may want to experiment with using the different drivers.
Rspec-retry
- The current retry count is 4, configured in spec_helper.rb.
- When developing new tests, you do not want retry a failure multiple times.
- Set this env value:
export RSPEC_RETRY_RETRY_COUNT=1
- Set this env value:
Selenium Chrome
You may want to see the chromedriver-helper docs and run chromedriver-update to get the latest version of the Chrome driver.