fastlane-plugin-test_center 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ccc0b62da8471a770aaa534f71dddfc6ab3405c5
4
- data.tar.gz: 76f8584a35ca29ddfabed5c33aa62e955eca123e
3
+ metadata.gz: 50cdc0bc096ef766ad176d7c5e51b85b4f5121e4
4
+ data.tar.gz: c549ea3d1e9a4f02c74facecbacc348f97416a4e
5
5
  SHA512:
6
- metadata.gz: 658d3ab7ba0e45c4b6c3a79542b654eb93ed3fd4517c15d4c4f6afe21d223214956b85e320be0c485032075e6fd25efd55a41cbb960bf088aa54a39e49e18835
7
- data.tar.gz: bb80d27fd09fcdb6d6d2dce3f7b583abd1bc59d7cddad6ba60b81cb8bf991bbd5ed0ba66eae474dd50b798c02309edf2c8987be68680079a80ae9143574cc925
6
+ metadata.gz: 5c99174266472769fc0b8c08970fcee676a0b93ca7a8a610db75eb5bd4aa51734455106202370375c86becbe23c154d192e543a5dad284a9f27e60399611f0fe
7
+ data.tar.gz: ffc01ee84db78faac5a18d83a76e7e31d2b24f32d3f01df16fb34eec6afdbc4c7860528660d801758a05aac092d5481369ac2615c1815edd89cb57edecea6716
@@ -22,6 +22,7 @@ module Fastlane
22
22
  UI.verbose("Scan failed with #{e}")
23
23
  report_filepath = junit_report_filepath(scan_options)
24
24
  scan_options[:only_testing] = other_action.tests_from_junit(junit: report_filepath)[:failed]
25
+ increment_junit_report_filename(scan_options)
25
26
  retry if try_count < params[:try_count]
26
27
  end
27
28
  end
@@ -57,13 +58,35 @@ module Fastlane
57
58
  config
58
59
  end
59
60
 
60
- def self.junit_report_filepath(config)
61
+ def self.junit_report_filename(config)
61
62
  report_filename = config[:custom_report_file_name]
62
63
  if report_filename.nil?
63
64
  junit_index = config[:output_types].split(',').find_index('junit')
64
65
  report_filename = config[:output_files].to_s.split(',')[junit_index]
65
66
  end
66
- File.join(config[:output_directory], report_filename)
67
+ report_filename
68
+ end
69
+
70
+ def self.junit_report_filepath(config)
71
+ File.join(config[:output_directory], junit_report_filename(config))
72
+ end
73
+
74
+ def self.increment_junit_report_filename(config)
75
+ new_report_number = 2
76
+ report_filename = junit_report_filename(config)
77
+ if /^(?<report_filename_no_suffix>.*)-(?<report_number>\d+)\.xml/ =~ report_filename
78
+ new_report_number = report_number.to_i + 1
79
+ report_filename = report_filename_no_suffix
80
+ end
81
+ new_report_filename = "#{File.basename(report_filename, '.*')}-#{new_report_number}.xml"
82
+ if config[:custom_report_file_name]
83
+ config[:custom_report_file_name] = new_report_filename
84
+ else
85
+ junit_index = config[:output_types].split(',').find_index('junit')
86
+ output_files = config[:output_files].to_s.split(',')
87
+ output_files[junit_index] = new_report_filename
88
+ config[:output_files] = output_files.join(',')
89
+ end
67
90
  end
68
91
 
69
92
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TestCenter
3
- VERSION = "1.0.4"
3
+ VERSION = "1.1.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: 1.0.4
4
+ version: 1.1.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: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -124,8 +124,7 @@ dependencies:
124
124
  version: '0'
125
125
  description: |2
126
126
  This fastlane plugin includes the following actions:
127
- 1) multi_scan: uses scan to run Xcode tests a given number of times: only re-testing
128
- failing tests.
127
+ 1) multi_scan: uses scan to run Xcode tests a given number of times: only re-testing failing tests.
129
128
  2) suppress_tests_from_junit: uses a junit xml report file to suppress either passing or failing tests in an Xcode Scheme.
130
129
  3) suppress_tests: suppresses specific tests in a specific or all Xcode Schemes in a given project.
131
130
  4) suppressed_tests: retrieves a list of tests that are suppressed in a specific or all Xcode Schemes in a project.
@@ -170,4 +169,3 @@ signing_key:
170
169
  specification_version: 4
171
170
  summary: Makes testing your iOS app easier
172
171
  test_files: []
173
- has_rdoc: