fastlane-plugin-test_center 3.17.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: 7e0ddcb1cdf461ac38fe07e31ef4988b6aa3665ac981f92ba3ca63a52263c4ec
4
- data.tar.gz: 6afe121f625d7afb355a1ec550964c3c247bff7184e68af589218f15a07cf94f
3
+ metadata.gz: bd42cfad479c390531bf8122fcaf4c86beb034b8b1a27f8ae3b966a52be46fd1
4
+ data.tar.gz: f68a44d196786413c936997d616294fcd31522abf66a81ec6d45a92dca0e5be8
5
5
  SHA512:
6
- metadata.gz: 7e7018ea78bf32cd3cb8cffb2651a8558a820e0816d8f7adb4336341f139f1b27cf7ffcd44df6d4b8a56c1902f4cd5c3f58d75c06558fad4648a410c2c981934
7
- data.tar.gz: 88cc071756b5e28619c620b5e0256119b2d30671a8c28220008db564a426e22d081d4171759e8dbc4fc3d876d64c34968eec1a6784bc5b095b5742bc8ec38342
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
 
@@ -33,7 +33,8 @@ module Fastlane
33
33
  testable_summaries = all_summaries.map(&:testable_summaries).flatten
34
34
  failed = []
35
35
  passing = []
36
- skipped = []
36
+ skipped = []
37
+ expected_failures = []
37
38
  failure_details = {}
38
39
  testable_summaries.map do |testable_summary|
39
40
  target_name = testable_summary.target_name
@@ -43,6 +44,8 @@ module Fastlane
43
44
  passing << "#{target_name}/#{t.identifier.sub('()', '')}"
44
45
  elsif t.test_status == 'Skipped'
45
46
  skipped << "#{target_name}/#{t.identifier.sub('()', '')}"
47
+ elsif t.test_status == 'Expected Failure'
48
+ expected_failures << "#{target_name}/#{t.identifier.sub('()', '')}"
46
49
  else
47
50
  test_identifier = "#{target_name}/#{t.identifier.sub('()', '')}"
48
51
  failed << test_identifier
@@ -58,7 +61,8 @@ module Fastlane
58
61
  {
59
62
  failed: failed.uniq,
60
63
  passing: passing.uniq,
61
- skipped: skipped.uniq,
64
+ skipped: skipped.uniq,
65
+ expected_failures: expected_failures.uniq,
62
66
  failure_details: failure_details
63
67
  }
64
68
  end
@@ -68,7 +72,7 @@ module Fastlane
68
72
  #####################################################
69
73
 
70
74
  def self.description
71
- "☑️ Retrieves the failing, passing, and skipped tests as reported in a xcresult bundle"
75
+ "☑️ Retrieves the failing, passing, skipped, and expected failing tests as reported in a xcresult bundle"
72
76
  end
73
77
 
74
78
 
@@ -90,7 +94,8 @@ module Fastlane
90
94
  "A Hash with information about the test results:\r\n" \
91
95
  "failed: an Array of the failed test identifiers\r\n" \
92
96
  "passing: an Array of the passing test identifiers\r\n" \
93
- "skipped: an Array of the skipped test identifiers\r\n"
97
+ "skipped: an Array of the skipped test identifiers\r\n" \
98
+ "expected_failures: an Array of the expected failure test identifiers\r\n"
94
99
  end
95
100
 
96
101
  def self.authors
@@ -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.17.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.17.0
4
+ version: 3.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-04 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
@@ -296,7 +296,7 @@ homepage: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center
296
296
  licenses:
297
297
  - MIT
298
298
  metadata: {}
299
- post_install_message:
299
+ post_install_message:
300
300
  rdoc_options: []
301
301
  require_paths:
302
302
  - lib
@@ -304,15 +304,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
304
  requirements:
305
305
  - - ">="
306
306
  - !ruby/object:Gem::Version
307
- version: '0'
307
+ version: '2.6'
308
308
  required_rubygems_version: !ruby/object:Gem::Requirement
309
309
  requirements:
310
310
  - - ">="
311
311
  - !ruby/object:Gem::Version
312
312
  version: '0'
313
313
  requirements: []
314
- rubygems_version: 3.1.2
315
- signing_key:
314
+ rubygems_version: 3.2.32
315
+ signing_key:
316
316
  specification_version: 4
317
317
  summary: Makes testing your iOS app easier
318
318
  test_files: []