ci_reporter_test_utils 0.0.2 → 0.0.3
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 +4 -4
- data/lib/ci/reporter/test_utils/accessor.rb +11 -1
- data/lib/ci/reporter/test_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 322e7fb132ea60d25e7da2d02db0c5b761d25d68
|
4
|
+
data.tar.gz: e7c42d6ec887d9ccff01e4ee63a6905611b4ff7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b028063daa6cac8d42a202715c98b9f016afcfd45be1b050d5c38c713fb402289976b0808fb9b69f608da926e434783508736694870ba292b4d13a65d6d02327
|
7
|
+
data.tar.gz: cca91b5324ebeb7f27b224902d29df0060b2589c492866b0a1081cc19b43f8c945522a78a7897e12c50faba991bfbcfc2430c4073b01a2613eac5d6c4b8e36f9
|
@@ -10,6 +10,12 @@ module CI::Reporter::TestUtils
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
+
Error = Struct.new(:xml) do
|
14
|
+
def type
|
15
|
+
xml.attributes['type']
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
13
19
|
Testcase = Struct.new(:xml) do
|
14
20
|
def name
|
15
21
|
xml.attributes['name']
|
@@ -18,6 +24,10 @@ module CI::Reporter::TestUtils
|
|
18
24
|
def failures
|
19
25
|
xml.elements.to_a('failure').map {|f| Failure.new(f) }
|
20
26
|
end
|
27
|
+
|
28
|
+
def errors
|
29
|
+
xml.elements.to_a("error").map {|e| Error.new(e) }
|
30
|
+
end
|
21
31
|
end
|
22
32
|
|
23
33
|
def initialize(xml)
|
@@ -29,7 +39,7 @@ module CI::Reporter::TestUtils
|
|
29
39
|
end
|
30
40
|
|
31
41
|
def errors
|
32
|
-
root.elements.to_a("/testsuite/testcase/error")
|
42
|
+
root.elements.to_a("/testsuite/testcase/error").map {|e| Error.new(e) }
|
33
43
|
end
|
34
44
|
|
35
45
|
def testcases
|