The browser tests drive real, remote browsers using BrowserStack. As a Bugsnag employee you can access the necessary credentials in our shared password manager.
Use the local-test-util
to build the test fixture, including the notifier from the current branch:
./bin/local-test-util init
The following environment variables need to be set:
BROWSER_STACK_USERNAME
BROWSER_STACK_ACCESS_KEY
HOST
- the test fixture host, typicallylocalhost
API_HOST
- the MazeRunner mock server host, typicallylocalhost
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