fastlane-plugin-test_center 3.8.0.parallelizing.beta.9 → 3.8.0

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
- SHA1:
3
- metadata.gz: f77fa973e751d52ce7fa63397e48ec3a2e9592d5
4
- data.tar.gz: a0a0c9ea893833e04ddc526bc52bb7563d007d5d
2
+ SHA256:
3
+ metadata.gz: 0c9e21b3d030a91eafe41d2d3f4d70ee1736e2c4ae36c13218374a5669e0f5b5
4
+ data.tar.gz: 176a4e44e5f695404e33e1be399133178bbe7cfb6cf907e6cfc0d16381de2722
5
5
  SHA512:
6
- metadata.gz: c1c924695fbd1e9f3f531266171c584c10012d7b5b4979b89383ad02b7ed3d19a7dc2f0e5a6e9cff7572d11608d2a56dcbb0879ce6b0f89ebdc68e7c8c5ff0d0
7
- data.tar.gz: 5bfb8bbceee4dd66010437d77292f612efa78a2d2529edccb805faeff4ec4b5c72a12354d0349ad45ee31ab23f645329fb49ececa1bc298f713ea88069dbbdbc
6
+ metadata.gz: b23d9fc31f7418859a56f835220b95ed6d251423cf1cbbd34e52766f128400b65b76e4cf692f52e30c4c502fd84b2e4fd2bd29103aac492f815a4e5edc57a3a3
7
+ data.tar.gz: 713ca27af8ee375ef245183527d32338d28f15a85f6c91647ee8f52bda7adf3b759fb004a7d16eb5d4bb34a13161ca2a1f5d253ae0288639c8310b502aa79b49
data/README.md CHANGED
@@ -59,7 +59,8 @@ lane :sweep do
59
59
  try_count: 3,
60
60
  fail_build: false,
61
61
  scheme: 'AtomicBoy',
62
- testrun_completed_block: test_run_block
62
+ testrun_completed_block: test_run_block,
63
+ parallel_testrun_count: 4
63
64
  )
64
65
  unless result[:failed_testcount].zero?
65
66
  UI.message("There are #{result[:failed_testcount]} legitimate failing tests")
@@ -11,10 +11,10 @@ module Fastlane
11
11
  reports = report_filepaths.map { |report_filepath| REXML::Document.new(File.new(report_filepath)) }
12
12
  # copy any missing testsuites
13
13
  target_report = reports.shift
14
- target_report.root.attributes['retries'] = reports.size.to_s
15
14
  preprocess_testsuites(target_report)
16
15
 
17
16
  reports.each do |report|
17
+ increment_testable_tries(target_report.root, report.root)
18
18
  preprocess_testsuites(report)
19
19
  UI.verbose("> collating last report file #{report_filepaths.last}")
20
20
  report.elements.each('//testsuite') do |testsuite|
@@ -109,6 +109,13 @@ module Fastlane
109
109
  end
110
110
  end
111
111
 
112
+ def self.increment_testable_tries(target_testable, other_testable)
113
+ try_count = target_testable.attributes['retries'] || 1
114
+ other_try_count = other_testable['retries'] || 1
115
+
116
+ target_testable.attributes['retries'] = (try_count.to_i + other_try_count.to_i).to_s
117
+ end
118
+
112
119
  def self.increment_testcase_tries(target_testcase, testcase)
113
120
  try_count = target_testcase.attributes['retries']
114
121
  testcase.attributes['retries'] = (try_count.to_i + 1).to_s
@@ -22,7 +22,7 @@ module Fastlane
22
22
  runner = ::TestCenter::Helper::MultiScanManager::Runner.new(runner_options)
23
23
  tests_passed = runner.run
24
24
 
25
- summary = run_summary(params, tests_passed, runner.retry_total_count)
25
+ summary = run_summary(params, tests_passed)
26
26
  print_run_summary(summary)
27
27
 
28
28
  if params[:fail_build] && !tests_passed
@@ -53,7 +53,7 @@ module Fastlane
53
53
  # :nocov:
54
54
  end
55
55
 
56
- def self.run_summary(scan_options, tests_passed, retry_total_count)
56
+ def self.run_summary(scan_options, tests_passed)
57
57
  reportnamer = ::TestCenter::Helper::ReportNameHelper.new(
58
58
  scan_options[:output_types],
59
59
  scan_options[:output_files],
@@ -65,11 +65,15 @@ module Fastlane
65
65
  report_files = Dir.glob("#{scan_options[:output_directory]}/**/#{reportnamer.junit_fileglob}").map do |relative_filepath|
66
66
  File.absolute_path(relative_filepath)
67
67
  end
68
+ retry_total_count = 0
68
69
  report_files.each do |report_file|
69
70
  junit_results = other_action.tests_from_junit(junit: report_file)
70
71
  failed_tests.concat(junit_results[:failed])
71
72
  passing_testcount += junit_results[:passing].size
72
73
  failure_details.merge!(junit_results[:failure_details])
74
+
75
+ report = REXML::Document.new(File.new(report_file))
76
+ retry_total_count += (report.root.attributes['retries'] || 1).to_i
73
77
  end
74
78
 
75
79
  if reportnamer.includes_html?
@@ -97,6 +97,7 @@ module TestCenter
97
97
  move_simulator_logs_for_next_run
98
98
 
99
99
  @testrun_count = @testrun_count + 1
100
+ FastlaneCore::UI.verbose("Batch ##{@options[:batch]} incrementing retry count to #{@testrun_count}")
100
101
  if exception.kind_of?(FastlaneCore::Interface::FastlaneTestFailure)
101
102
  after_testrun_message = "Scan found failing tests"
102
103
  after_testrun_message << " for batch ##{@options[:batch]}" unless @options[:batch].nil?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "3.8.0.parallelizing.beta.9"
3
+ VERSION = "3.8.0"
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.8.0.parallelizing.beta.9
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lyndsey Ferguson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-01 00:00:00.000000000 Z
11
+ date: 2019-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -287,12 +287,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
287
287
  version: '0'
288
288
  required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ">"
290
+ - - ">="
291
291
  - !ruby/object:Gem::Version
292
- version: 1.3.1
292
+ version: '0'
293
293
  requirements: []
294
- rubyforge_project:
295
- rubygems_version: 2.6.11
294
+ rubygems_version: 3.0.2
296
295
  signing_key:
297
296
  specification_version: 4
298
297
  summary: Makes testing your iOS app easier