fastlane-plugin-test_center 3.0.8 → 3.1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3c7ef1c1d977ea7e8315d6c3e804f74ba1b8d84
|
4
|
+
data.tar.gz: cea8e47bde1aa0f504cc7a842d751fcc0cae28b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2de9f93a1de2ded80a8158bbaf0f09f6c25f04df79f25870f21454a3214adc53ee924eec6bf415b2bba37246c9dd92e0c1cb3a5d7fffda76cf19925a46127b88
|
7
|
+
data.tar.gz: 5740b6224caddf817f7a15e6963bf09a3d53462465ce47e265e3d3d9344f9fa27055d9e968e73b44359fd09cc66254f0f0e625d1da86a098c51f146a170d1c54
|
@@ -42,6 +42,7 @@ module Fastlane
|
|
42
42
|
)
|
43
43
|
passing_testcount = 0
|
44
44
|
failed_tests = []
|
45
|
+
failure_details = {}
|
45
46
|
report_files = Dir.glob("#{scan_options[:output_directory]}/**/*#{reportnamer.junit_filextension}").map do |relative_filepath|
|
46
47
|
File.absolute_path(relative_filepath)
|
47
48
|
end
|
@@ -49,6 +50,7 @@ module Fastlane
|
|
49
50
|
junit_results = other_action.tests_from_junit(junit: report_file)
|
50
51
|
failed_tests.concat(junit_results[:failed])
|
51
52
|
passing_testcount += junit_results[:passing].size
|
53
|
+
failure_details.merge!(junit_results[:failure_details])
|
52
54
|
end
|
53
55
|
{
|
54
56
|
result: tests_passed,
|
@@ -56,6 +58,7 @@ module Fastlane
|
|
56
58
|
passing_testcount: passing_testcount,
|
57
59
|
failed_testcount: failed_tests.size,
|
58
60
|
failed_tests: failed_tests,
|
61
|
+
failure_details: failure_details,
|
59
62
|
total_retry_count: retry_total_count,
|
60
63
|
report_files: report_files
|
61
64
|
}
|
@@ -5,6 +5,7 @@ module Fastlane
|
|
5
5
|
report = ::TestCenter::Helper::XcodeJunit::Report.new(params[:junit])
|
6
6
|
passing = []
|
7
7
|
failed = []
|
8
|
+
failure_details = {}
|
8
9
|
report.testables.each do |testable|
|
9
10
|
testable.testsuites.each do |testsuite|
|
10
11
|
testsuite.testcases.each do |testcase|
|
@@ -12,13 +13,18 @@ module Fastlane
|
|
12
13
|
passing << testcase.identifier
|
13
14
|
else
|
14
15
|
failed << testcase.identifier
|
16
|
+
failure_details[testcase.identifier] = {
|
17
|
+
message: testcase.message,
|
18
|
+
location: testcase.location
|
19
|
+
}
|
15
20
|
end
|
16
21
|
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
{
|
20
25
|
failed: failed,
|
21
|
-
passing: passing
|
26
|
+
passing: passing,
|
27
|
+
failure_details: failure_details
|
22
28
|
}
|
23
29
|
end
|
24
30
|
|
@@ -44,7 +50,11 @@ module Fastlane
|
|
44
50
|
end
|
45
51
|
|
46
52
|
def self.return_value
|
47
|
-
"A Hash with
|
53
|
+
"A Hash with information about the test results:\r\n" \
|
54
|
+
"failed: an Array of the failed test identifiers\r\n" \
|
55
|
+
"passing: an Array of the passing test identifiers\r\n" \
|
56
|
+
"failure_details: a Hash with failed test identifiers as the key, and " \
|
57
|
+
"a Hash with :message and :location details for the failed test"
|
48
58
|
end
|
49
59
|
|
50
60
|
def self.authors
|
@@ -69,10 +69,17 @@ module TestCenter
|
|
69
69
|
class TestCase
|
70
70
|
attr_reader :identifier
|
71
71
|
attr_reader :skipped_test
|
72
|
+
attr_reader :message
|
73
|
+
attr_reader :location
|
72
74
|
|
73
75
|
def initialize(xml_element)
|
74
76
|
@root = xml_element
|
75
77
|
name = xml_element.attributes['name']
|
78
|
+
failure_element = xml_element.elements['failure']
|
79
|
+
if failure_element
|
80
|
+
@message = failure_element.attributes['message'] || ''
|
81
|
+
@location = failure_element.text || ''
|
82
|
+
end
|
76
83
|
full_testsuite = xml_element.parent.attributes['name']
|
77
84
|
testsuite = full_testsuite.testsuite
|
78
85
|
is_swift = full_testsuite.testsuite_swift?
|
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.0
|
4
|
+
version: 3.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: 2018-03-
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plist
|
@@ -233,4 +233,3 @@ signing_key:
|
|
233
233
|
specification_version: 4
|
234
234
|
summary: Makes testing your iOS app easier
|
235
235
|
test_files: []
|
236
|
-
has_rdoc:
|