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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50cdc0bc096ef766ad176d7c5e51b85b4f5121e4
|
4
|
+
data.tar.gz: c549ea3d1e9a4f02c74facecbacc348f97416a4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
#####################################################
|
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
|
+
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-
|
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:
|