Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.03 KB

TESTING.md

File metadata and controls

35 lines (23 loc) · 1.03 KB

Browser testing

The browser tests drive real, remote browsers using BrowserStack. As a Bugsnag employee you can access the necessary credentials in our shared password manager.

Building the test fixtures

Use the local-test-util to build the test fixture, including the notifier from the current branch:

./bin/local-test-util init

Running the end-to-end tests

The following environment variables need to be set:

  • BROWSER_STACK_USERNAME
  • BROWSER_STACK_ACCESS_KEY
  • HOST - the test fixture host, typically localhost
  • API_HOST - the MazeRunner mock server host, typically localhost

The browsers available to test on are the keys in browsers.yml.

To run all the tests, run the following in test/browser:

bundle exec maze-runner --farm=bs --browser=chrome_latest

Or to run a single feature file:

bundle exec maze-runner --farm=bs --browser=chrome_latest features/device.feature