bugsnag-maze-runner 8.14.0 → 8.15.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd153df2adf96e3f771d981af1bc7daa36e48c08caed9493d52f5ed8a49e2f7b
4
- data.tar.gz: ba2b8ffa6ab47ee37eaba88cdce0e86a8e0e28c6f79941651062c9260812bd5c
3
+ metadata.gz: cebeb631cc91a03c41573b39a4977d0d21af876299e851f359176d98c672231c
4
+ data.tar.gz: 0e8ae1131849a1a215347103764f0691b0a760016e404265c879f7e255cf0942
5
5
  SHA512:
6
- metadata.gz: fddd6897ee26a623f296e4c5504869926cddb9d6e557ae054286d6551f7840755b81599816a4c2c5f670cb124815361514f41f27f0f029fb1c4d1892cd7f44b8
7
- data.tar.gz: 9323a020df074f37c128b03f932200dcbf1c81fc54eb32df7e3ea675c7b61c3e1a94203a89a26c7c425f62debd1936510fea19d94d51cd7d0af24acdba23585b
6
+ metadata.gz: 1036bf6e74cf99b3f784e4d552740d23fc8df33806822620a0371672d41ae77f49c39e9ac7fdf4f2f42facf9d08dbbd9e1b894d0915912a5081de5f8e38a71f0
7
+ data.tar.gz: d5094c3dd7c71135b270d5a5b087e58923bb1f1be8c4cbd549b5d83f88c442789155f38ec6ad2315e27459c50b19f4375846e0b850614263dc1a257129046006
@@ -146,7 +146,7 @@ After do |scenario|
146
146
 
147
147
  # Log all received requests to the console if the scenario fails and/or config says to
148
148
  if (scenario.failed? && Maze.config.log_requests) || Maze.config.always_log
149
- $stdout.puts '^^^ +++'
149
+ $stdout.puts '^^^ +++' if ENV['BUILDKITE']
150
150
  output_received_requests('errors')
151
151
  output_received_requests('sessions')
152
152
  output_received_requests('traces')
@@ -99,6 +99,8 @@ module Maze
99
99
  'uiautomator2ServerInstallTimeout' => 60000,
100
100
  'uiautomator2ServerLaunchTimeout' => 60000
101
101
  }
102
+ appium_options['appActivity'] = Maze.config.app_activity unless Maze.config.app_activity.nil?
103
+ appium_options['appPackage'] = Maze.config.app_package unless Maze.config.app_package.nil?
102
104
  hash = {
103
105
  'platformName' => 'Android',
104
106
  'deviceName' => 'Android Phone',
@@ -155,7 +155,7 @@ module Maze
155
155
  # Test run
156
156
  if ENV['BUILDKITE']
157
157
  bk_retry = ENV['BUILDKITE_RETRY_COUNT']
158
- retry_string = if !bk_retry.nil? && bk_retry.to_i > 1
158
+ retry_string = if !bk_retry.nil? && bk_retry.to_i > 0
159
159
  " (#{bk_retry})"
160
160
  else
161
161
  ''
@@ -137,6 +137,12 @@ module Maze
137
137
  # Test browser version
138
138
  attr_accessor :browser_version
139
139
 
140
+ # The appActivity to be set in the Appium capabilities
141
+ attr_accessor :app_activity
142
+
143
+ # The appPackage to be set in the Appium capabilities
144
+ attr_accessor :app_package
145
+
140
146
  # Appium version to use
141
147
  attr_accessor :appium_version
142
148
 
@@ -134,6 +134,14 @@ module Maze
134
134
  'Device farm access key. Consumes env var from environment based on farm set',
135
135
  short: :none,
136
136
  type: :string
137
+ opt Option::APP_ACTIVITY,
138
+ 'The appActivity to set in the Appium capabilities (for BitBar only)',
139
+ short: :none,
140
+ type: :string
141
+ opt Option::APP_PACKAGE,
142
+ 'The appPackage to set in the Appium capabilities (for BitBar only)',
143
+ short: :none,
144
+ type: :string
137
145
  opt Option::APPIUM_VERSION,
138
146
  'The Appium version to use',
139
147
  short: :none,
@@ -47,6 +47,8 @@ module Maze
47
47
  end
48
48
  config.locator = options[Maze::Option::A11Y_LOCATOR] ? :accessibility_id : :id
49
49
  config.capabilities_option = options[Maze::Option::CAPABILITIES]
50
+ config.app_activity = options[Maze::Option::APP_ACTIVITY]
51
+ config.app_package = options[Maze::Option::APP_PACKAGE]
50
52
  config.legacy_driver = !ENV['USE_LEGACY_DRIVER'].nil?
51
53
  config.start_tunnel = options[Maze::Option::TUNNEL]
52
54
 
data/lib/maze/option.rb CHANGED
@@ -21,7 +21,9 @@ module Maze
21
21
 
22
22
  # Generic device farm options
23
23
  ACCESS_KEY = 'access-key'
24
+ APP_ACTIVITY = 'app-activity'
24
25
  APP_BUNDLE_ID = 'app-bundle-id'
26
+ APP_PACKAGE = 'app-package'
25
27
  APPIUM_VERSION = 'appium-version'
26
28
  BROWSER = 'browser'
27
29
  BROWSER_VERSION = 'browser-version'
@@ -31,9 +31,6 @@ module Maze
31
31
  commands.next
32
32
  end
33
33
  else
34
- $logger.info "request.query = #{request.query}"
35
-
36
-
37
34
  # Idempotent mode
38
35
  after_uuid = request.query['after']
39
36
  if after_uuid.nil?
@@ -87,5 +84,3 @@ module Maze
87
84
  end
88
85
  end
89
86
  end
90
-
91
-
data/lib/maze.rb CHANGED
@@ -7,7 +7,7 @@ require_relative 'maze/timers'
7
7
  # Glues the various parts of MazeRunner together that need to be accessed globally,
8
8
  # providing an alternative to the proliferation of global variables or singletons.
9
9
  module Maze
10
- VERSION = '8.14.0'
10
+ VERSION = '8.15.0'
11
11
 
12
12
  class << self
13
13
  attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-maze-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.14.0
4
+ version: 8.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Kirkland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber