fastlane-plugin-xcresult_to_junit 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1148c0c7a8073cf7e839095b600304076b3347816a4ddc4d7cb2e0a7037fdc00
4
- data.tar.gz: a619ba21e9a4f6ca4d225c3c3a2da76685d40cbc1501e7b45346fca995d2652c
3
+ metadata.gz: 76f68b9a4c330ae06e83c63ac0d48bfdde347f2125ee5a4956c34fbab81f5f68
4
+ data.tar.gz: decc54b120a32f06ed73aa55a87c41562570b82cf740fbf50660caf613b23b80
5
5
  SHA512:
6
- metadata.gz: a4eb1e3c72642ce13efbc0fc839dec2415cfe53ff50cf2d9c058995a76f7d69378d34efdda1167aa95e0ffe203a1b4ed8a26c4b3c00de682fdddbab2e887e018
7
- data.tar.gz: e0971b4c44766e3f11bdb6301462a0e732cac9e87edd098122dc72390e6f96c575f7b9ab36c36317c15dc050013f8584959eac263b0c19fb60f7aac2aec61584
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}", "#{id}.png", id)
54
- map[folder_name]['files'].push({'description' => name, 'mime-type' => 'image/png', 'path' => "#{folder_name}/#{id}.png", 'timestamp' => timestamp})
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)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module XcresultToJunit
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  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.3
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-01-22 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry