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: 513eae983cc2a800cbfe418da79a22bbff3a89aa7511e3a76ea84e9c2a241df3
4
- data.tar.gz: 0f0d063b2c0a2fb8276e8a7186a0726008fe28e50c1354d1c36c91810bad674b
3
+ metadata.gz: 8d4ae676597a3e9b639c6f31c26e8b1237c821b5923a404a106637bea39c998c
4
+ data.tar.gz: 916b0ec2290cd0f572f48938c1c0860dac107fdee6be21a94d1325ec445f0825
5
5
  SHA512:
6
- metadata.gz: cab19007a6dd5782e59641d1ef22d5d0dd5a942b58be2c5a6e9129ddb41117b06ac6a93c60a778707b1ea6a45d99c4b05fd83774835903bc451443ed79177181
7
- data.tar.gz: a09815bbfb934d8295972eaa10033ad9115039d56060bb85732d60feb56ef713dce449bc7de202393f7a2392234ea7562f67ffcbc53ef17f457ff0da39bb1ca2
6
+ metadata.gz: 7cc2b3a851e7e1a50b2d6fd18fa8565cd1f831e98d74589d7d99c42b1b3242c697e48dbe25fadf7e403de51e665db85d6a9aa29781736e0c274afb2f59b01078
7
+ data.tar.gz: 202223ce81f2649ded6613a8d9f831838aaf72653667b68c6edb98c8ca28d9ace86c7f5d88729533a144d82d8efd814caf5dc6a99aa87735eae49c62a7f972af
@@ -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
- command = "xcrun simctl spawn #{device.udid} log collect --output #{logarchive_dst.shellescape} 2>/dev/null"
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
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.14.5"
3
+ VERSION = "3.14.6"
4
4
  end
5
5
  end
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.5
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-16 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json