fastlane-plugin-test_center 3.19.0 → 3.19.1

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: 9d61e954d4ce230901a494ca25bca7a5dc7ff3496dfb6ff638b886cb78704f18
4
- data.tar.gz: c3bd1f5803cb8dbd4408f8d91bf7b0069ee80391047f104f6fa2c4f0711a600b
3
+ metadata.gz: bd42cfad479c390531bf8122fcaf4c86beb034b8b1a27f8ae3b966a52be46fd1
4
+ data.tar.gz: f68a44d196786413c936997d616294fcd31522abf66a81ec6d45a92dca0e5be8
5
5
  SHA512:
6
- metadata.gz: 4e9117f66388f484f4dcf993a4fc205ea5819dd278a47437de5bcf87e71ed386cb6e09b7ac8805cccd9f35f110468ee4118ae98a1ab27bbdaacffac61460ba90
7
- data.tar.gz: 3c75fd3783808e0e7c377183cf186879116ca935c906056c53b22f08e5fcadd5065555a961c6d1f3ec17cad68aeb20e3a14d76f396eb4e808e0da8d181971918
6
+ metadata.gz: 7f1601f23bae8d4e46f62c4d2b0275a90fb96af9b25cca5240ffc7e0f1d31b2afe6612b027fc5b13af563690c19ae34c0337eaba3ef04f50270ffb1365a43886
7
+ data.tar.gz: 7355c377b489c9f840ace5e1d8bbf45aa6494a5294bc9d077d8ef57672b0c6f6c2832f11f729267b711e94a0927075337d4638f0a459fe125a8da8295bc4fb7a
@@ -36,6 +36,8 @@ module Fastlane
36
36
  end
37
37
 
38
38
  UI.message("Finished collating xcresults to '#{params[:collated_xcresult]}'")
39
+ UI.verbose(" final xcresults: #{other_action.tests_from_xcresult(xcresult: params[:collated_xcresult])}")
40
+
39
41
  commands_run
40
42
  end
41
43
 
@@ -15,6 +15,7 @@ module TestCenter
15
15
  CollateXcresultsAction = Fastlane::Actions::CollateXcresultsAction
16
16
 
17
17
  def initialize(params)
18
+ FastlaneCore::UI.verbose("ReportCollator.initialize with ':source_reports_directory_glob' of \"#{params[:source_reports_directory_glob]}\"")
18
19
  @source_reports_directory_glob = params[:source_reports_directory_glob]
19
20
  @output_directory = params[:output_directory]
20
21
  @reportnamer = params[:reportnamer]
@@ -143,7 +144,7 @@ module TestCenter
143
144
  end
144
145
  end
145
146
 
146
- def collate_xcresult_bundles
147
+ def collate_xcresult_bundles
147
148
  return unless @reportnamer.includes_xcresult?
148
149
 
149
150
  test_xcresult_bundlepaths = sort_globbed_files("#{@source_reports_directory_glob}/#{@reportnamer.xcresult_fileglob}")
@@ -161,7 +162,7 @@ module TestCenter
161
162
  )
162
163
  CollateXcresultsAction.run(config)
163
164
  FileUtils.rm_rf(test_xcresult_bundlepaths - [collated_xcresult_bundlepath])
164
- elsif test_xcresult_bundlepaths.size == 1 && File.realdirpath(test_xcresult_bundlepaths.first) != File.realdirpath(collated_xcresult_bundlepath)
165
+ elsif test_xcresult_bundlepaths.size == 1 && File.realdirpath(test_xcresult_bundlepaths.first.downcase) != File.realdirpath(collated_xcresult_bundlepath.downcase)
165
166
  FastlaneCore::UI.verbose("Copying xcresult bundle from #{test_xcresult_bundlepaths.first} to #{collated_xcresult_bundlepath}")
166
167
  FileUtils.mkdir_p(File.dirname(collated_xcresult_bundlepath))
167
168
  FileUtils.mv(test_xcresult_bundlepaths.first, collated_xcresult_bundlepath)
@@ -9,6 +9,7 @@ module TestCenter
9
9
  raise ArgumentError, 'Do not use the :device or :devices option. Instead use the :destination option.' if (options.key?(:device) or options.key?(:devices))
10
10
 
11
11
  @options = options
12
+ FastlaneCore::UI.verbose("RetryingScanHelper.initialize with ':output' as \"#{@options[:output_directory]}\"")
12
13
  @testrun_count = 0
13
14
  @xcpretty_json_file_output = ENV['XCPRETTY_JSON_FILE_OUTPUT']
14
15
  @reportnamer = ReportNameHelper.new(
@@ -54,7 +55,7 @@ module TestCenter
54
55
  Scan.devices = @options[:scan_devices_override]
55
56
  end
56
57
  end
57
-
58
+
58
59
  values = scan_config.values(ask: false)
59
60
  values[:xcode_path] = File.expand_path("../..", FastlaneCore::Helper.xcode_path)
60
61
  ScanHelper.print_scan_parameters(values)
@@ -447,7 +448,7 @@ module TestCenter
447
448
  return unless @options[:result_bundle]
448
449
 
449
450
  result_extension = FastlaneCore::Helper.xcode_at_least?('11') ? '.xcresult' : '.test_result'
450
-
451
+
451
452
  glob_pattern = "#{output_directory}/*#{result_extension}"
452
453
  preexisting_test_result_bundles = Dir.glob(glob_pattern)
453
454
  unnumbered_test_result_bundles = preexisting_test_result_bundles.reject do |test_result|
@@ -103,7 +103,7 @@ module TestCenter
103
103
  end
104
104
 
105
105
  unless test_results.all? || @options[:try_count] < 1
106
- test_results.clear
106
+ test_results.clear
107
107
  setup_testcollector
108
108
  setup_run_tests_for_each_device do |device_name|
109
109
  FastlaneCore::UI.message("Testing batches for device '#{device_name}'") if device_name
@@ -114,7 +114,7 @@ module TestCenter
114
114
  end
115
115
 
116
116
  def setup_run_tests_for_each_device
117
- original_output_directory = @options.fetch(:output_directory, 'test_results')
117
+ original_output_directory = @options.fetch(:output_directory, 'test_results')
118
118
  unless @options[:platform] == :ios_simulator
119
119
  yield
120
120
  return
@@ -359,12 +359,12 @@ module TestCenter
359
359
 
360
360
  absolute_output_directory = File.absolute_path(output_directory)
361
361
  source_reports_directory_glob = "#{absolute_output_directory}/*"
362
-
362
+ FastlaneCore::UI.verbose("MultiScanManager::Runner sending 'source_reports_directory_glob' of \"#{source_reports_directory_glob}\"")
363
363
  TestCenter::Helper::MultiScanManager::ReportCollator.new(
364
364
  source_reports_directory_glob: source_reports_directory_glob,
365
365
  output_directory: absolute_output_directory,
366
366
  reportnamer: report_name_helper
367
- ).collate_junit_reports
367
+ ).collate_junit_reports
368
368
  end
369
369
 
370
370
  def collate_batched_reports_for_testable(testable)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.19.0"
3
+ VERSION = "3.19.1"
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.19.0
4
+ version: 3.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-06 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json