fastlane-plugin-xcresult_to_junit 0.2.1 → 0.2.2
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: 3b5b7dbfbecef6bff5d1feebb4666cbf6e9f62e9436d4a1fbaf6c4af168f5c97
|
4
|
+
data.tar.gz: 7829c031a2ed03c0e6644115c0fa0431521ad85b3856e450bd1a55bd31108b91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f929f35717b7605466d55ac47e6a39410ac7ce2294cdbaa34f5114309f21f1f714645e64c0f1a291ff8b00a4250f7e077f7cafa5a3c6ff7c5a9242ebc11f329
|
7
|
+
data.tar.gz: 51dfb5a4e72904fe567a3a2442f9a2e9220c785b6286282ab14e77b9f8d3b5e3bfa05a605930751de12b0a63040ad6138ce33af0a16a11c514301045466ecff3
|
@@ -36,18 +36,20 @@ module Fastlane
|
|
36
36
|
testcase = { name: testcase_name, time: duration }
|
37
37
|
map["#{suite_name}.#{testcase_name}"] = {'files' => [], 'tags' => tags}
|
38
38
|
|
39
|
-
if test['summaryRef']
|
39
|
+
if defined?(test['summaryRef']['id']['_value'])
|
40
40
|
summaryRef = test['summaryRef']['id']['_value']
|
41
|
-
ref = Helper::XcresultToJunitHelper.load_object(params[:xcresult_path], summaryRef)
|
42
|
-
ref
|
43
|
-
|
44
|
-
summary['attachments']
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
41
|
+
ref = Helper::XcresultToJunitHelper.load_object(params[:xcresult_path], summaryRef)
|
42
|
+
if defined?(ref['activitySummaries']['_values'])
|
43
|
+
ref['activitySummaries']['_values'].each do |summary|
|
44
|
+
if summary['attachments']
|
45
|
+
summary['attachments']['_values'].each do |attachment|
|
46
|
+
timestamp = DateTime.parse(attachment['timestamp']['_value']).to_time.to_i
|
47
|
+
name = attachment['name']['_value']
|
48
|
+
folder_name = "#{suite_name}.#{testcase_name}"
|
49
|
+
id = attachment['payloadRef']['id']['_value']
|
50
|
+
Helper::XcresultToJunitHelper.fetch_screenshot(params[:xcresult_path], "#{junit_folder}/attachments/#{folder_name}", "#{id}.png", id)
|
51
|
+
map[folder_name]['files'].push({'description' => name, 'mime-type' => 'image/png', 'path' => "#{folder_name}/#{id}.png", 'timestamp' => timestamp})
|
52
|
+
end
|
51
53
|
end
|
52
54
|
end
|
53
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-xcresult_to_junit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Birdsall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|