fastlane-plugin-xcresult_to_junit 0.2.3 → 0.2.4
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: 76f68b9a4c330ae06e83c63ac0d48bfdde347f2125ee5a4956c34fbab81f5f68
|
4
|
+
data.tar.gz: decc54b120a32f06ed73aa55a87c41562570b82cf740fbf50660caf613b23b80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b099b6e0fc8d54b8ff25f14e397b68728d94f0376c17094c4a6d04c2f072d15b9009fe2070869b199b8e051641d089e1b56a303e822d1a4711174657fb614e8
|
7
|
+
data.tar.gz: f8c1cce9b4803efccd93f6591b175be093193e70af6f5a042f3644b534f55b8a0b4d6b51b54236c38117a62aed47bb2df9026133cb668f289a1075e34c78c433
|
@@ -47,11 +47,12 @@ module Fastlane
|
|
47
47
|
if summary['attachments']
|
48
48
|
summary['attachments']['_values'].each do |attachment|
|
49
49
|
timestamp = DateTime.parse(attachment['timestamp']['_value']).to_time.to_i
|
50
|
+
filename = attachment['filename']['_value']
|
50
51
|
name = attachment['name']['_value']
|
51
52
|
folder_name = "#{suite_name}.#{testcase_name}"
|
52
53
|
id = attachment['payloadRef']['id']['_value']
|
53
|
-
Helper::XcresultToJunitHelper.fetch_screenshot(params[:xcresult_path], "#{junit_folder}/attachments/#{folder_name}", "#{
|
54
|
-
map[folder_name]['files'].push({'description' => name, 'mime-type' => 'image/png', 'path' => "#{folder_name}/#{
|
54
|
+
Helper::XcresultToJunitHelper.fetch_screenshot(params[:xcresult_path], "#{junit_folder}/attachments/#{folder_name}", "#{filename}", id)
|
55
|
+
map[folder_name]['files'].push({'description' => name, 'mime-type' => 'image/png', 'path' => "#{folder_name}/#{filename}", 'timestamp' => timestamp})
|
55
56
|
end
|
56
57
|
end
|
57
58
|
end
|
@@ -19,7 +19,7 @@ module Fastlane
|
|
19
19
|
if !File.directory?(output_path)
|
20
20
|
FileUtils.mkdir output_path
|
21
21
|
end
|
22
|
-
JSON.load FastlaneCore::CommandExecutor.execute(command: "xcrun xcresulttool export --path #{xcresult_path} --output-path #{output_path}/#{file_name} --id #{id} --type file")
|
22
|
+
JSON.load FastlaneCore::CommandExecutor.execute(command: "xcrun xcresulttool export --path #{xcresult_path} --output-path \"#{output_path}/#{file_name}\" --id #{id} --type file")
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.save_screenshot_mapping(map_hash, output_path)
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Birdsall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|