Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use MazeRunner environment variables where available #934

Merged
merged 4 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ steps:
- "--app=/app/build/iOSTestApp.ipa"
- "--farm=bs"
- "--device=IOS_14"
- "--username=$BROWSER_STACK_USERNAME"
- "--access-key=$BROWSER_STACK_ACCESS_KEY"
- "--resilient"
- "--appium-version=1.17.0"
- "--fail-fast"
Expand All @@ -50,8 +48,6 @@ steps:
- "--app=/app/build/iOSTestApp.ipa"
- "--farm=bs"
- "--device=IOS_13"
- "--username=$BROWSER_STACK_USERNAME"
- "--access-key=$BROWSER_STACK_ACCESS_KEY"
- "--resilient"
- "--appium-version=1.17.0"
- "--fail-fast"
Expand All @@ -75,8 +71,6 @@ steps:
- "--app=/app/build/iOSTestApp.ipa"
- "--farm=bs"
- "--device=IOS_12"
- "--username=$BROWSER_STACK_USERNAME"
- "--access-key=$BROWSER_STACK_ACCESS_KEY"
- "--resilient"
- "--appium-version=1.17.0"
- "--fail-fast"
Expand All @@ -88,7 +82,9 @@ steps:
limit: 2

- label: ':ios: iOS 11 end-to-end tests'
timeout_in_minutes: 60
# More time than other steps as the BrowserStack iOS 11 devices seem particularly unstable and
# sessions need resetting frequently, taking a minute or more each time.
timeout_in_minutes: 90
agents:
queue: opensource
plugins:
Expand All @@ -100,8 +96,6 @@ steps:
- "--app=/app/build/iOSTestApp.ipa"
- "--farm=bs"
- "--device=IOS_11_0_IPHONE_8_PLUS"
- "--username=$BROWSER_STACK_USERNAME"
- "--access-key=$BROWSER_STACK_ACCESS_KEY"
- "--resilient"
- "--appium-version=1.16.0"
- "--fail-fast"
Expand All @@ -125,8 +119,6 @@ steps:
- "--app=/app/build/iOSTestApp.ipa"
- "--farm=bs"
- "--device=IOS_10"
- "--username=$BROWSER_STACK_USERNAME"
- "--access-key=$BROWSER_STACK_ACCESS_KEY"
- "--resilient"
- "--appium-version=1.15.0"
- "--fail-fast"
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gem 'xcpretty'

# A reference to Maze Runner is only needed for running tests locally and if committed it must be
# portable for CI, e.g. a specific release. However, leaving it commented out would mean quicker CI.
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v3.3.0'
gem 'bugsnag-maze-runner', git: 'https://github.com/bugsnag/maze-runner', tag: 'v3.6.0'

# Locally, you can run against Maze Runner branches and uncommitted changes:
# gem 'bugsnag-maze-runner', path: '../maze-runner'
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
GIT
remote: https://github.com/bugsnag/maze-runner
revision: 627c13ab684e9b021b94ab9678cab09c48a78a59
tag: v3.3.0
revision: b73093f128efdea444966969cd3526e26de8ed5b
tag: v3.6.0
specs:
bugsnag-maze-runner (3.3.0)
bugsnag-maze-runner (3.6.0)
appium_lib (~> 10.2)
cucumber (~> 3.1.2)
cucumber-expressions (~> 6.0.0)
Expand Down Expand Up @@ -34,7 +34,7 @@ GEM
appium_lib_core (~> 3.3)
nokogiri (~> 1.8, >= 1.8.1)
tomlrb (~> 1.1)
appium_lib_core (3.11.0)
appium_lib_core (3.11.1)
faye-websocket (~> 0.11.0)
selenium-webdriver (~> 3.14, >= 3.14.1)
atomos (0.1.3)
Expand Down Expand Up @@ -136,7 +136,7 @@ GEM
selenium-webdriver (3.142.7)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
test-unit (3.3.6)
test-unit (3.3.7)
power_assert
thread_safe (0.3.6)
tomlrb (1.3.0)
Expand Down
8 changes: 3 additions & 5 deletions TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ __Your session will periodically expire__, so you'll need to run this command to
#### Steps

1. Ensure the following environment variables are set:
- `BROWSER_STACK_USERNAME` - your BrowserStack App Automate Username
- `BROWSER_STACK_ACCESS_KEY` - your BrowserStack App Automate Access Key
- `MAZE_DEVICE_FARM_USERNAME` - your BrowserStack App Automate Username
- `MAZE_DEVICE_FARM_ACCESS_KEY` - your BrowserStack App Automate Access Key
- `MAZE_BS_LOCAL` - location of the `BrowserStackLocal` executable on your local file system
1. Build the test fixtures:
```shell script
make test-fixtures
Expand All @@ -69,9 +70,6 @@ __Your session will periodically expire__, so you'll need to run this command to
bundle exec maze-runner --app=features/fixtures/ios-swift-cocoapods/output/iOSTestApp.ipa \
--farm=bs \
--device=IOS_14 \
--username=$BROWSER_STACK_USERNAME \
--access-key=$BROWSER_STACK_ACCESS_KEY \
--bs-local=~/BrowserStackLocal \
features/app_and_device_attributes.feature
```
1. To run all features, omit the final argument.
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ services:
environment:
DEBUG:
VERBOSE:
BUILDKITE:
BUILDKITE_PIPELINE_NAME:
MAZE_DEVICE_FARM_USERNAME:
MAZE_DEVICE_FARM_ACCESS_KEY:
volumes:
- ./features/fixtures/ios-swift-cocoapods/output:/app/build
- ./features/:/app/features/