xamarin-test-cloud 0.9.21 → 0.9.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xamarin-test-cloud/cli.rb +47 -10
- data/lib/xamarin-test-cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f3e751626b34ef14e12ab8618bfa39b425067b
|
4
|
+
data.tar.gz: 88993fbb8f7668148c038bc93be3dbe65e4748dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4345fb1d1f2064236fdc98d5ac4accb8129fe20ce2d33213905b9c538f4fdaf05859bda696f2a83dcb5213e5905c1f081e4a0a7099e12d8a1ab475b5b368125a
|
7
|
+
data.tar.gz: 395748f3dacc975d0374d669731cfcd41c57959baf0c7a4dedb99bab584cbecff973370c118d238b7834849b23af2876f278631c22912d9f6ea1a5009f649854
|
@@ -20,7 +20,8 @@ module XamarinTestCloud
|
|
20
20
|
include Thor::Actions
|
21
21
|
|
22
22
|
attr_accessor :host, :app, :api_key, :appname, :app_explorer, :test_parameters,
|
23
|
-
:workspace, :config, :profile, :
|
23
|
+
:workspace, :config, :profile, :skip_config_check
|
24
|
+
attr_accessor :dry_run, :device_selection
|
24
25
|
attr_accessor :pretty, :async
|
25
26
|
attr_accessor :endpoint_path
|
26
27
|
|
@@ -79,6 +80,11 @@ module XamarinTestCloud
|
|
79
80
|
:aliases => '-c',
|
80
81
|
:type => :string
|
81
82
|
|
83
|
+
method_option 'skip-config-check',
|
84
|
+
:desc => "Force running without Cucumber profile (cucumber.yml)",
|
85
|
+
:type => :boolean,
|
86
|
+
:default => false
|
87
|
+
|
82
88
|
method_option :profile,
|
83
89
|
:desc => 'Profile to run (profile from cucumber.yml)',
|
84
90
|
:aliases => '-p',
|
@@ -143,9 +149,8 @@ module XamarinTestCloud
|
|
143
149
|
|
144
150
|
self.app_explorer = options['app-explorer']
|
145
151
|
|
146
|
-
|
147
|
-
|
148
|
-
end
|
152
|
+
|
153
|
+
self.skip_config_check = options['skip-config-check']
|
149
154
|
|
150
155
|
|
151
156
|
workspace_path = options[:workspace] || File.expand_path('.')
|
@@ -164,6 +169,30 @@ module XamarinTestCloud
|
|
164
169
|
|
165
170
|
self.workspace = File.join(self.workspace, File::Separator)
|
166
171
|
|
172
|
+
unless File.directory?(File.join(self.workspace, 'features'))
|
173
|
+
log_header "Did not find features folder in workspace #{self.workspace}"
|
174
|
+
puts "Either run the test-cloud command from the directory containing your features"
|
175
|
+
puts "or use the --workspace option to refer to this directory"
|
176
|
+
puts "See also test-cloud help submit"
|
177
|
+
raise ValidationError, "Unable to find features folder in #{self.workspace}"
|
178
|
+
end
|
179
|
+
|
180
|
+
unless app_explorer
|
181
|
+
parse_and_set_config_and_profile
|
182
|
+
unless self.skip_config_check
|
183
|
+
default_config = File.join(self.workspace,'config','cucumber.yml')
|
184
|
+
if File.exist?(default_config) && self.config.nil?
|
185
|
+
log_header 'Warning: Detected cucumber.yml config file, but no --config specified'
|
186
|
+
puts "Please specify --config #{default_config}"
|
187
|
+
puts 'and specify a profile via --profile'
|
188
|
+
puts 'If you know what you are doing you can skip this check with'
|
189
|
+
puts '--skip-config-check'
|
190
|
+
raise ValidationError, "#{default_config} detected but no profile selected."
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
|
167
196
|
if ENV['DEBUG']
|
168
197
|
puts "Host = #{self.host}"
|
169
198
|
puts "App = #{self.app}"
|
@@ -189,18 +218,26 @@ module XamarinTestCloud
|
|
189
218
|
p json
|
190
219
|
end
|
191
220
|
|
192
|
-
log_header(
|
193
|
-
puts "User: #{json[
|
221
|
+
log_header('Test enqueued')
|
222
|
+
puts "User: #{json['user_email']}"
|
223
|
+
|
224
|
+
|
225
|
+
rejected_devices = json['rejected_devices']
|
226
|
+
if rejected_devices && rejected_devices.size > 0
|
227
|
+
puts 'Skipping devices (you can update your selections via https://testcloud.xamarin.com)'
|
228
|
+
rejected_devices.each {|d| puts d}
|
229
|
+
end
|
230
|
+
puts ''
|
194
231
|
|
195
|
-
puts
|
196
|
-
json[
|
232
|
+
puts 'Running on Devices:'
|
233
|
+
json['devices'].each do |device|
|
197
234
|
puts device
|
198
235
|
end
|
199
|
-
puts
|
236
|
+
puts ''
|
200
237
|
|
201
238
|
|
202
239
|
unless self.async
|
203
|
-
wait_for_job(json[
|
240
|
+
wait_for_job(json['id'])
|
204
241
|
else
|
205
242
|
log 'Async mode: not awaiting test results'
|
206
243
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xamarin-test-cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karl Krukow
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|