ci_reporter_test_utils 0.0.2 → 0.0.3

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: b60ae789246e60b410345398a2dd35eab1b7b17c
4
- data.tar.gz: b52360f36968a981bfe519829c622f61a13b57cb
3
+ metadata.gz: 322e7fb132ea60d25e7da2d02db0c5b761d25d68
4
+ data.tar.gz: e7c42d6ec887d9ccff01e4ee63a6905611b4ff7d
5
5
  SHA512:
6
- metadata.gz: 7a7bcc1e65ab8ee5dc7227fa51564a8e4d1786904eac832c00f7f9b321a0063b9d79efd92b75ee872221970a76cc120317c46a3eb167c3337541e7815b9ee1b6
7
- data.tar.gz: 1dce8e7e562108620206c02ba2173dcf8ddd1707f555281267711ef60f56b18678fac41e0f70ca2b914c7420a379afd99dbfa2ce300d8168eb5a5381e76acbc7
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
@@ -1,7 +1,7 @@
1
1
  module CI
2
2
  module Reporter
3
3
  module TestUtils
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ci_reporter_test_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sieger