fastlane-plugin-test_center 3.9.0.beta.2 → 3.9.0.beta.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bc1d297ecb384da8bf4ec716f631e101420264b3e0c65a3b39892409912b643
|
4
|
+
data.tar.gz: b2518ae01a7a0081fb0f886964c98374a694315ec46be7d4f9e99214eac4e647
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2880fab38dc43ece3663bbb7e7d34b0267380533af3f1b9dd1df555f3080b6c420fe41efdf49d0afe26a868c8e6624f4eaa027e530ff7110dc32d93d6823538a
|
7
|
+
data.tar.gz: 62511a0b7f377e567e2530d30b73a7791ca37609764dd1cf2da2922856fd33c8469d9bf3978d46b1bdf0a3db4b15d6464f24ef90c88bdd6625596cee70d70760
|
@@ -38,7 +38,10 @@ module TestCenter
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def delete_xcresults
|
41
|
-
|
41
|
+
if @reportnamer.includes_xcresult?
|
42
|
+
FileUtils.rm_rf(File.join(output_directory, @reportnamer.xcresult_last_bundlename))
|
43
|
+
return
|
44
|
+
end
|
42
45
|
|
43
46
|
derived_data_path = File.expand_path(@options[:derived_data_path] || Scan.config[:derived_data_path])
|
44
47
|
xcresults = Dir.glob("#{derived_data_path}/Logs/Test/*.xcresult")
|
@@ -138,7 +141,7 @@ module TestCenter
|
|
138
141
|
move_test_result_bundle_for_next_run
|
139
142
|
reset_json_env
|
140
143
|
end
|
141
|
-
|
144
|
+
|
142
145
|
def collate_reports
|
143
146
|
return unless @options[:collate_reports]
|
144
147
|
|
@@ -176,13 +179,13 @@ module TestCenter
|
|
176
179
|
update_html_failure_details(info)
|
177
180
|
update_json_failure_details(info)
|
178
181
|
update_test_result_bundle_details(info)
|
179
|
-
|
182
|
+
|
180
183
|
@options[:testrun_completed_block].call(info)
|
181
184
|
end
|
182
185
|
|
183
186
|
def failure_details(additional_info)
|
184
187
|
return [{}, nil] if additional_info.key?(:test_operation_failure)
|
185
|
-
|
188
|
+
|
186
189
|
report_filepath = File.join(output_directory, @reportnamer.junit_last_reportname)
|
187
190
|
config = FastlaneCore::Configuration.create(
|
188
191
|
Fastlane::Actions::TestsFromJunitAction.available_options,
|
@@ -204,14 +207,14 @@ module TestCenter
|
|
204
207
|
|
205
208
|
def update_json_failure_details(info)
|
206
209
|
return unless @reportnamer.includes_json?
|
207
|
-
|
210
|
+
|
208
211
|
json_report_filepath = File.join(output_directory, @reportnamer.json_last_reportname)
|
209
212
|
info[:json_report_filepath] = json_report_filepath
|
210
213
|
end
|
211
214
|
|
212
215
|
def update_test_result_bundle_details(info)
|
213
216
|
return unless @options[:result_bundle]
|
214
|
-
|
217
|
+
|
215
218
|
test_result_suffix = '.test_result'
|
216
219
|
test_result_suffix.prepend("-#{@reportnamer.report_count}") unless @reportnamer.report_count.zero?
|
217
220
|
test_result_bundlepath = File.join(output_directory, @options[:scheme]) + test_result_suffix
|
@@ -243,7 +246,7 @@ module TestCenter
|
|
243
246
|
end
|
244
247
|
end
|
245
248
|
|
246
|
-
def handle_build_failure(exception)
|
249
|
+
def handle_build_failure(exception)
|
247
250
|
test_session_last_messages = last_lines_of_test_session_log
|
248
251
|
failure = retrieve_test_operation_failure(test_session_last_messages)
|
249
252
|
case failure
|
@@ -275,7 +278,7 @@ module TestCenter
|
|
275
278
|
derived_data_path = File.expand_path(@options[:derived_data_path])
|
276
279
|
test_session_logs = Dir.glob("#{derived_data_path}/Logs/Test/*.xcresult/*_Test/Diagnostics/**/Session-*.log")
|
277
280
|
return '' if test_session_logs.empty?
|
278
|
-
|
281
|
+
|
279
282
|
test_session_logs.sort! { |logfile1, logfile2| File.mtime(logfile1) <=> File.mtime(logfile2) }
|
280
283
|
test_session = File.open(test_session_logs.last)
|
281
284
|
backwards_seek_offset = -1 * [1000, test_session.stat.size].min
|
@@ -298,7 +301,7 @@ module TestCenter
|
|
298
301
|
|
299
302
|
def move_test_result_bundle_for_next_run
|
300
303
|
return unless @options[:result_bundle]
|
301
|
-
|
304
|
+
|
302
305
|
glob_pattern = "#{output_directory}/*.test_result"
|
303
306
|
preexisting_test_result_bundles = Dir.glob(glob_pattern)
|
304
307
|
unnumbered_test_result_bundles = preexisting_test_result_bundles.reject do |test_result|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-test_center
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.9.0.beta.
|
4
|
+
version: 3.9.0.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lyndsey Ferguson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|