52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# File 'lib/fastlane/plugin/redpill/actions/redpill_action.rb', line 52
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :app,
env_name: 'REDPILL_APP',
description: 'The path to the host application to execute (your .app)',
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :xctestrun_path,
env_name: 'REDPILL_XCTESTRUN_PATH',
description: 'The path to the .xctestrun file that xcode leaves when you build-for-testing',
optional: false,
type: String),
FastlaneCore::ConfigItem.new(key: :output_dir,
env_name: 'REDPILL_OUTPUT_DIR',
description: 'Directory where to put output log files (bluepill only)',
optional: false,
type: String),
FastlaneCore::ConfigItem.new(key: :device,
env_name: 'REDPILL_DEVICE',
default_value: 'iPhone 6',
description: 'On which device to run the app',
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :exclude,
env_name: 'REDPILL_EXCLUDE',
description: 'Exclude a testcase in the set of tests to run (takes priority over include)',
optional: true,
default_value: [],
type: Array),
FastlaneCore::ConfigItem.new(key: :headless,
env_name: 'REDPILL_HEADLESS',
description: 'Run in headless mode (no GUI)',
default_value: false,
type: TrueClass,
optional: true),
FastlaneCore::ConfigItem.new(key: :xcode_path,
env_name: 'REDPILL_XCODE_PATH',
description: 'Path to xcode developer directory',
optional: true,
type: String),
FastlaneCore::ConfigItem.new(key: :include,
env_name: 'REDPILL_INCLUDE',
description: 'Include a testcase in the set of tests to run (unless specified in exclude)',
optional: true,
default_value: [],
type: Array),
FastlaneCore::ConfigItem.new(key: :json_output,
env_name: 'REDPILL_JSON_OUTPUT',
description: 'Print test timing information in JSON format',
optional: true,
type: TrueClass,
default_value: false),
FastlaneCore::ConfigItem.new(key: :junit_output,
env_name: 'REDPILL_JUNIT_OUTPUT',
description: 'Print results in JUnit format',
optional: true,
type: TrueClass,
default_value: true),
FastlaneCore::ConfigItem.new(key: :list_tests,
env_name: 'REDPILL_LIST_TESTS',
description: 'Only list tests in bundle',
optional: true,
type: TrueClass,
default_value: false),
FastlaneCore::ConfigItem.new(key: :num_sims,
env_name: 'REDPILL_NUM_SIMS',
description: 'Number of simulators to run in parallel',
optional: true,
default_value: 4,
type: Integer),
FastlaneCore::ConfigItem.new(key: :plain_output,
env_name: 'REDPILL_PLAIN_OUTPUT',
description: 'Print results in plain text',
optional: true,
type: TrueClass,
default_value: false),
FastlaneCore::ConfigItem.new(key: :error_retries,
env_name: 'REDPILL_ERROR_RETRIES',
description: 'Number of times to recover from simulator/app crashing/hanging and continue running',
optional: true,
default_value: 5,
type: Integer),
FastlaneCore::ConfigItem.new(key: :failure_tolerance,
env_name: 'REDPILL_FAILURE_TOLERANCE',
description: 'Number of times to retry on test failures',
optional: true,
default_value: 0,
type: Integer),
FastlaneCore::ConfigItem.new(key: :only_retry_failed,
env_name: 'REDPILL_ONLY_RETRY_FAILED',
description: 'When failure_tolerance > 0, only retry tests that failed',
optional: true,
type: TrueClass,
default_value: false),
FastlaneCore::ConfigItem.new(key: :runtime,
env_name: 'REDPILL_RUNTIME',
description: 'What runtime to use',
optional: true,
default_value: 'iOS 11.1',
type: String),
FastlaneCore::ConfigItem.new(key: :stuck_timeout,
env_name: 'REDPILL_STUCK_TIMEOUT',
description: 'Timeout in seconds for a test that seems stuck (no output)',
optional: true,
default_value: '300s',
type: String),
FastlaneCore::ConfigItem.new(key: :test_timeout,
env_name: 'REDPILL_TEST_TIMEOUT',
description: 'Timeout in seconds for a test that is producing output',
optional: true,
default_value: '300s',
type: String),
FastlaneCore::ConfigItem.new(key: :repeat_count,
env_name: 'REDPILL_REPEAT_COUNT',
description: 'Number of times we\'ll run the entire test suite (used for load testing)',
optional: true,
default_value: 1,
type: Integer),
FastlaneCore::ConfigItem.new(key: :reuse_simulator,
env_name: 'REDPILL_REUSE_SIMULATOR',
description: 'Enable reusing simulators between test bundles',
optional: true,
type: TrueClass,
default_value: false),
FastlaneCore::ConfigItem.new(key: :diagnostics,
env_name: 'REDPILL_DIAGNOSTICS',
description: 'Enable collection of diagnostics in outputDir in case of test failures',
optional: true,
default_value: false,
type: String),
FastlaneCore::ConfigItem.new(key: :screenshots_directory,
env_name: 'REDPILL_SCREENSHOTS_DIRECTORY',
description: 'Directory where simulator screenshots for failed ui tests will be stored',
optional: true,
type: String),
]
end
|