fastlane-plugin-test_center 3.14.5 → 3.14.6
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: 8d4ae676597a3e9b639c6f31c26e8b1237c821b5923a404a106637bea39c998c
|
4
|
+
data.tar.gz: 916b0ec2290cd0f572f48938c1c0860dac107fdee6be21a94d1325ec445f0825
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc2b3a851e7e1a50b2d6fd18fa8565cd1f831e98d74589d7d99c42b1b3242c697e48dbe25fadf7e403de51e665db85d6a9aa29781736e0c274afb2f59b01078
|
7
|
+
data.tar.gz: 202223ce81f2649ded6613a8d9f831838aaf72653667b68c6edb98c8ca28d9ace86c7f5d88729533a144d82d8efd814caf5dc6a99aa87735eae49c62a7f972af
|
data/lib/fastlane/plugin/test_center/helper/fastlane_core/device_manager/simulator_extensions.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
|
2
2
|
module FixedCopyLogarchiveFastlaneSimulator
|
3
3
|
def self.included(base)
|
4
|
+
@@log_collection_start_time = DateTime.now
|
4
5
|
base.instance_eval do
|
5
6
|
def copy_logarchive(device, log_identity, logs_destination_dir)
|
6
7
|
require 'shellwords'
|
@@ -8,7 +9,11 @@ module FixedCopyLogarchiveFastlaneSimulator
|
|
8
9
|
logarchive_dst = File.join(logs_destination_dir, "system_logs-#{log_identity}.logarchive")
|
9
10
|
FileUtils.rm_rf(logarchive_dst)
|
10
11
|
FileUtils.mkdir_p(File.expand_path("..", logarchive_dst))
|
11
|
-
|
12
|
+
|
13
|
+
logs_collection_start = @@log_collection_start_time.strftime('%Y-%m-%d %H:%M:%S')
|
14
|
+
command = "xcrun simctl spawn #{device.udid} log collect "
|
15
|
+
command << "--start '#{logs_collection_start}' "
|
16
|
+
command << "--output #{logarchive_dst.shellescape} 2>/dev/null"
|
12
17
|
FastlaneCore::CommandExecutor.execute(command: command, print_all: false, print_command: true)
|
13
18
|
end
|
14
19
|
end
|
@@ -94,7 +94,7 @@ module TestCenter
|
|
94
94
|
if should_run_tests_through_single_try?
|
95
95
|
test_results.clear
|
96
96
|
setup_run_tests_for_each_device do |device_name|
|
97
|
-
FastlaneCore::UI.message("Single try testing for device '#{device_name}'")
|
97
|
+
FastlaneCore::UI.message("Single try testing for device '#{device_name}'") if device_name
|
98
98
|
test_results << run_tests_through_single_try
|
99
99
|
end
|
100
100
|
end
|
@@ -103,7 +103,7 @@ module TestCenter
|
|
103
103
|
test_results.clear
|
104
104
|
setup_testcollector
|
105
105
|
setup_run_tests_for_each_device do |device_name|
|
106
|
-
FastlaneCore::UI.message("Testing batches for device '#{device_name}'")
|
106
|
+
FastlaneCore::UI.message("Testing batches for device '#{device_name}'") if device_name
|
107
107
|
test_results << run_test_batches
|
108
108
|
end
|
109
109
|
end
|
@@ -112,6 +112,11 @@ module TestCenter
|
|
112
112
|
|
113
113
|
def setup_run_tests_for_each_device
|
114
114
|
original_output_directory = @options.fetch(:output_directory, 'test_results')
|
115
|
+
unless @options[:platform] == :ios_simulator
|
116
|
+
yield
|
117
|
+
return
|
118
|
+
end
|
119
|
+
|
115
120
|
scan_destinations = Scan.config[:destination].clone
|
116
121
|
try_count = @options[:try_count]
|
117
122
|
|
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.14.
|
4
|
+
version: 3.14.6
|
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-10-
|
11
|
+
date: 2020-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|