fastlane-plugin-retry_tests 1.0.4 → 1.0.5

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
  SHA1:
3
- metadata.gz: e746e60aff3e682cc2d4a8e51421de6968d14903
4
- data.tar.gz: f3f602d79c25320f5607cd10f8c67b120838b401
3
+ metadata.gz: b0a63fd5b0f3559f101da87e12b7d834bcfa2572
4
+ data.tar.gz: 97323c67459fad6ba9ec6833933aebc24b8bec68
5
5
  SHA512:
6
- metadata.gz: 6c184c61ab44ad5513f3542443cefc2775127aa8d9146676d4bfdceafbd975c4d64a222beedcf9027749860007e36d17e56f2bc5ef4e8907c729850703ee31ba
7
- data.tar.gz: 7fd57b36e0bbc248a5c67b3480ba9462f8e9c8e2729891ade2e14531e0372d88c306a0f7e5b7f95a09b47966d4094360c08788fd563fc3418f727e5e7d0caa9c
6
+ metadata.gz: de7d10e058fb1a627c88eecb88252d5dc7dc842e38db4d7a56b3661a0819826a1295f911634a0b138d50fae2d60ec75379a768d6e30f80bb122039779758a506
7
+ data.tar.gz: 320be5510c19dd34111388c2fca483d339127a7dbb509e1e49f1d6340cff4e47eceaca258d9001639ba5bce9c0ec3745fa56859d2937c44ca2307ba17051c40e
@@ -8,7 +8,10 @@ module Fastlane
8
8
  class CollateJunitReportsAction < Action
9
9
 
10
10
  def self.run(params)
11
- report_filepaths = params[:reports]
11
+ report_filepaths = params[:reports].reverse
12
+ report_filepaths.each do |file|
13
+ FastlaneCore::UI.verbose("report file: " + file)
14
+ end
12
15
  if report_filepaths.size == 1
13
16
  FileUtils.cp(report_filepaths[0], params[:collated_report])
14
17
  else
@@ -27,11 +30,15 @@ module Fastlane
27
30
  end
28
31
 
29
32
  def self.mergeLists(target_report, retry_report, params)
30
- UI.verbose("Merging retried results...")
33
+ FastlaneCore::UI.verbose("Merging retried results...")
31
34
  Dir.mkdir(params[:collated_report]) unless File.exists?(params[:collated_report])
32
35
  file_name = params[:collated_report] + "/action_TestSummaries.plist"
33
36
  retried_tests = retry_report.xpath("//key[contains(.,'TestSummaryGUID')]/..")
34
37
 
38
+ retried_tests.each do |retried|
39
+ FastlaneCore::UI.verbose("retried test name: " + retried)
40
+ end
41
+
35
42
  current_node = retried_tests.shift
36
43
 
37
44
  #Copy retried test results into the base report
@@ -40,6 +47,7 @@ module Fastlane
40
47
  matching_node = target_report.at_xpath("//string[contains(.,'#{testName}')]/..")
41
48
 
42
49
  if (!matching_node.nil?)
50
+ FastlaneCore::UI.verbose("matching node test name: " + get_test_name(matching_node))
43
51
  matching_node.previous.next.replace(current_node)
44
52
  write_report_to_file(target_report, file_name)
45
53
  end
@@ -48,7 +56,7 @@ module Fastlane
48
56
  end
49
57
 
50
58
  def self.merge_assets(asset_files, assets_folder)
51
- UI.verbose ("Merging screenshot folders...")
59
+ FastlaneCore::UI.verbose("Merging screenshot folders...")
52
60
 
53
61
  #copy screenshots from all retries into the results folder
54
62
  Dir.mkdir(assets_folder) unless File.exists?(assets_folder)
@@ -58,7 +66,7 @@ module Fastlane
58
66
  end
59
67
 
60
68
  def self.merge_logs(log_files, logs_folder)
61
- UI.verbose("Merging console logs...")
69
+ FastlaneCore::UI.verbose("Merging console logs...")
62
70
 
63
71
  #copy console logs from all retries into the results folder
64
72
  target_log = log_files.shift
@@ -72,7 +80,7 @@ module Fastlane
72
80
  end
73
81
 
74
82
  def self.write_report_to_file(report, file_name)
75
- UI.verbose("Writing merged results to file...")
83
+ FastlaneCore::UI.verbose("Writing merged results to file...")
76
84
  File.new(file_name, 'w')
77
85
  File.open(file_name, 'w') do |f|
78
86
  f.write(report.to_xml)
@@ -25,7 +25,7 @@ module Fastlane
25
25
  config = FastlaneCore::Configuration.create(Fastlane::Actions::ScanAction.available_options, scan_options)
26
26
  Fastlane::Actions::ScanAction.run(config)
27
27
  rescue FastlaneCore::Interface::FastlaneTestFailure => e
28
- UI.verbose("Scan failed with error #{e}")
28
+ FastlaneCore::UI.verbose("Scan failed with error #{e}")
29
29
  #Retry for the specified number of times if there were failed tests
30
30
  if try_count < params[:try_count]
31
31
  report_filepath = junit_report_filepath(scan_options)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-retry_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gloria Chow