fastlane-plugin-test_center 3.15.1 → 3.16.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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06b7ebcc7e0d62e28f6cfb7ceff979cbc0fc122bbbb42a8dc242b1a76433af90
|
4
|
+
data.tar.gz: c5c4225e577b68ee289720ebcd1ff22312f16a3f560a8e4faffaa23a1de17b6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9917198062684ab363b755154af6b59dc9ff373b555942c5a57ada1141bba6a44d836336cddbdec5e041a412f6977db337fc3077fa6bc13110d8b04a3f546cc
|
7
|
+
data.tar.gz: 360d3c4100aab492d2b3949b8d05c34bd36e1c5973de8809e05657b43bf59d608b91b211f0b1cc13608c1e9939a65dd19c6b9be733b5c238bf78f44009e5d8c6
|
data/README.md
CHANGED
@@ -99,8 +99,7 @@ _fastlane_ is the easiest way to automate beta deployments and releases for your
|
|
99
99
|
## Supporters
|
100
100
|
|
101
101
|
![Владислав Давыдов](https://avatars1.githubusercontent.com/u/47553334?s=44&u=4691860dba898943b947180b3d28bb85851b0d7c&v=4)
|
102
|
-
[vdavydovHH](https://github.com/vdavydovHH)
|
103
|
-
|
102
|
+
[vdavydovHH](https://github.com/vdavydovHH)
|
104
103
|
## License
|
105
104
|
|
106
105
|
MIT
|
@@ -16,7 +16,7 @@ module Fastlane
|
|
16
16
|
result_bundle_object_raw = sh("xcrun xcresulttool get --path #{xcresult_path.shellescape} --format json", print_command: false, print_command_output: false)
|
17
17
|
result_bundle_object = JSON.parse(result_bundle_object_raw)
|
18
18
|
|
19
|
-
# Parses JSON into ActionsInvocationRecord to find a list of all ids for ActionTestPlanRunSummaries
|
19
|
+
# Parses JSON into ActionsInvocationRecord to find a list of all ids for ActionTestPlanRunSummaries.
|
20
20
|
actions_invocation_record = Trainer::XCResult::ActionsInvocationRecord.new(result_bundle_object)
|
21
21
|
test_refs = actions_invocation_record.actions.map do |action|
|
22
22
|
action.action_result.tests_ref
|
@@ -33,14 +33,18 @@ module Fastlane
|
|
33
33
|
testable_summaries = all_summaries.map(&:testable_summaries).flatten
|
34
34
|
failed = []
|
35
35
|
passing = []
|
36
|
+
skipped = []
|
36
37
|
failure_details = {}
|
37
|
-
|
38
|
+
testable_summaries.map do |testable_summary|
|
39
|
+
target_name = testable_summary.target_name
|
38
40
|
all_tests = testable_summary.all_tests.flatten
|
39
41
|
all_tests.each do |t|
|
40
42
|
if t.test_status == 'Success'
|
41
|
-
passing << "#{
|
43
|
+
passing << "#{target_name}/#{t.identifier.sub('()', '')}"
|
44
|
+
elsif t.test_status == 'Skipped'
|
45
|
+
skipped << "#{target_name}/#{t.identifier.sub('()', '')}"
|
42
46
|
else
|
43
|
-
test_identifier = "#{
|
47
|
+
test_identifier = "#{target_name}/#{t.identifier.sub('()', '')}"
|
44
48
|
failed << test_identifier
|
45
49
|
failure = t.find_failure(failures)
|
46
50
|
if failure
|
@@ -54,6 +58,7 @@ module Fastlane
|
|
54
58
|
{
|
55
59
|
failed: failed.uniq,
|
56
60
|
passing: passing.uniq,
|
61
|
+
skipped: skipped.uniq,
|
57
62
|
failure_details: failure_details
|
58
63
|
}
|
59
64
|
end
|
@@ -63,7 +68,7 @@ module Fastlane
|
|
63
68
|
#####################################################
|
64
69
|
|
65
70
|
def self.description
|
66
|
-
"☑️ Retrieves the failing and
|
71
|
+
"☑️ Retrieves the failing, passing, and skipped tests as reported in a xcresult bundle"
|
67
72
|
end
|
68
73
|
|
69
74
|
|
@@ -84,7 +89,8 @@ module Fastlane
|
|
84
89
|
def self.return_value
|
85
90
|
"A Hash with information about the test results:\r\n" \
|
86
91
|
"failed: an Array of the failed test identifiers\r\n" \
|
87
|
-
"passing: an Array of the passing test identifiers\r\n"
|
92
|
+
"passing: an Array of the passing test identifiers\r\n" \
|
93
|
+
"skipped: an Array of the skipped test identifiers\r\n"
|
88
94
|
end
|
89
95
|
|
90
96
|
def self.authors
|
@@ -6,19 +6,19 @@ module TestCenter
|
|
6
6
|
attr_reader :report_count
|
7
7
|
|
8
8
|
def initialize(output_types = nil, output_files = nil, custom_report_file_name = nil)
|
9
|
-
@output_types = output_types || '
|
9
|
+
@output_types = output_types || 'xcresult'
|
10
10
|
@output_files = output_files || custom_report_file_name
|
11
11
|
@report_count = 0
|
12
12
|
|
13
13
|
if @output_types && @output_files.nil?
|
14
14
|
@output_files = @output_types.split(',').map { |type| "report.#{type}" }.join(',')
|
15
15
|
end
|
16
|
-
unless @output_types.include?('
|
17
|
-
FastlaneCore::UI.important('Scan output types missing \'
|
18
|
-
@output_types = @output_types.split(',').push('
|
16
|
+
unless @output_types.include?('xcresult')
|
17
|
+
FastlaneCore::UI.important('Scan output types missing \'xcresult\', adding it')
|
18
|
+
@output_types = @output_types.split(',').push('xcresult').join(',')
|
19
19
|
if @output_types.split(',').size == @output_files.split(',').size + 1
|
20
|
-
@output_files = @output_files.split(',').push('report.
|
21
|
-
FastlaneCore::UI.message('As output files has one less than the new number of output types, assumming the filename for the
|
20
|
+
@output_files = @output_files.split(',').push('report.xcresult').join(',')
|
21
|
+
FastlaneCore::UI.message('As output files has one less than the new number of output types, assumming the filename for the xcresult was missing and added it')
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -57,9 +57,11 @@ module TestCenter
|
|
57
57
|
numbered_filename(filename)
|
58
58
|
end
|
59
59
|
|
60
|
+
output_types = types.join(',') unless types.empty?
|
61
|
+
output_files = files.join(',') unless files.empty?
|
60
62
|
options.merge(
|
61
|
-
output_types:
|
62
|
-
output_files:
|
63
|
+
output_types: output_types,
|
64
|
+
output_files: output_files
|
63
65
|
)
|
64
66
|
end
|
65
67
|
|
@@ -145,7 +147,7 @@ module TestCenter
|
|
145
147
|
def json_numbered_fileglob
|
146
148
|
"#{File.basename(json_reportname, '.*')}-[1-9]*#{json_filextension}"
|
147
149
|
end
|
148
|
-
|
150
|
+
|
149
151
|
def self.ensure_output_includes_xcresult(output_types, output_files)
|
150
152
|
return [output_types, output_files] if includes_xcresult?(output_types) || output_types.nil?
|
151
153
|
|
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.
|
4
|
+
version: 3.16.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:
|
11
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: trainer
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: xcodeproj
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +114,14 @@ dependencies:
|
|
128
114
|
requirements:
|
129
115
|
- - ">="
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
117
|
+
version: 2.201.0
|
132
118
|
type: :development
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.
|
124
|
+
version: 2.201.0
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: markdown-tables
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|