ci_reporter 1.6.6 → 1.6.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ == 1.6.7 (12/13/11)
2
+
3
+ - Add support for JUnit skipped and error tags (thanks Jørgen Tjernø)
4
+
1
5
  == 1.6.6 (12/06/11)
2
6
 
3
7
  - added code and spec to shorten filenames that will cause
@@ -5,6 +5,8 @@
5
5
  require 'delegate'
6
6
  require 'stringio'
7
7
 
8
+ require 'ci/reporter/test_unit'
9
+
8
10
  module CI
9
11
  module Reporter
10
12
  # Emulates/delegates IO to $stdout or $stderr in order to capture output to report in the XML file.
@@ -138,7 +140,12 @@ module CI
138
140
  builder.skipped
139
141
  else
140
142
  failures.each do |failure|
141
- builder.failure(:type => builder.trunc!(failure.name), :message => builder.trunc!(failure.message)) do
143
+ tag = case failure
144
+ when TestUnitSkipped then :skipped
145
+ when TestUnitError then :error
146
+ else :failure end
147
+
148
+ builder.tag!(tag, :type => builder.trunc!(failure.name), :message => builder.trunc!(failure.message)) do
142
149
  builder.text!(failure.message + " (#{failure.name})\n")
143
150
  builder.text!(failure.location)
144
151
  end
@@ -44,7 +44,7 @@ module CI
44
44
  def initialize(fault) @fault = fault end
45
45
  def failure?() false end
46
46
  def error?() false end
47
- def name() Test::Unit::Omission.name end
47
+ def name() @fault.class.name end
48
48
  def message() @fault.message end
49
49
  def location() @fault.location.join("\n") end
50
50
  end
@@ -54,7 +54,7 @@ module CI
54
54
  def initialize(fault) @fault = fault end
55
55
  def failure?() false end
56
56
  def error?() false end
57
- def name() Test::Unit::Notification.name end
57
+ def name() @fault.class.name end
58
58
  def message() @fault.message end
59
59
  def location() @fault.location.join("\n") end
60
60
  end
@@ -1,5 +1,5 @@
1
1
  module CI
2
2
  module Reporter
3
- VERSION = "1.6.6"
3
+ VERSION = "1.6.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,96 +1,74 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ci_reporter
3
- version: !ruby/object:Gem::Version
4
- hash: 3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.7
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 6
9
- - 6
10
- version: 1.6.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Nick Sieger
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-07 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- type: :runtime
22
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2011-12-13 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: builder
16
+ requirement: &70301673773060 !ruby/object:Gem::Requirement
23
17
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 15
28
- segments:
29
- - 2
30
- - 1
31
- - 2
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
32
21
  version: 2.1.2
33
- version_requirements: *id001
34
- name: builder
22
+ type: :runtime
35
23
  prerelease: false
36
- - !ruby/object:Gem::Dependency
37
- type: :development
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70301673773060
25
+ - !ruby/object:Gem::Dependency
26
+ name: rubyforge
27
+ requirement: &70301673772640 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 7
44
- segments:
45
- - 2
46
- - 0
47
- - 4
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
48
32
  version: 2.0.4
49
- version_requirements: *id002
50
- name: rubyforge
51
- prerelease: false
52
- - !ruby/object:Gem::Dependency
53
33
  type: :development
54
- requirement: &id003 !ruby/object:Gem::Requirement
34
+ prerelease: false
35
+ version_requirements: *70301673772640
36
+ - !ruby/object:Gem::Dependency
37
+ name: hoe
38
+ requirement: &70301673803940 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
40
+ requirements:
57
41
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 27
60
- segments:
61
- - 2
62
- - 12
63
- version: "2.12"
64
- version_requirements: *id003
65
- name: hoe
66
- prerelease: false
67
- - !ruby/object:Gem::Dependency
42
+ - !ruby/object:Gem::Version
43
+ version: '2.12'
68
44
  type: :development
69
- requirement: &id004 !ruby/object:Gem::Requirement
45
+ prerelease: false
46
+ version_requirements: *70301673803940
47
+ - !ruby/object:Gem::Dependency
48
+ name: rdoc
49
+ requirement: &70301673861960 !ruby/object:Gem::Requirement
70
50
  none: false
71
- requirements:
51
+ requirements:
72
52
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 19
75
- segments:
76
- - 3
77
- - 10
78
- version: "3.10"
79
- version_requirements: *id004
80
- name: rdoc
53
+ - !ruby/object:Gem::Version
54
+ version: '3.10'
55
+ type: :development
81
56
  prerelease: false
82
- description: CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows you to generate XML reports of your test, spec and/or feature runs. The resulting files can be read by a continuous integration system that understands Ant's JUnit report XML format, thus allowing your CI system to track test/spec successes and failures.
57
+ version_requirements: *70301673861960
58
+ description: CI::Reporter is an add-on to Test::Unit, RSpec and Cucumber that allows
59
+ you to generate XML reports of your test, spec and/or feature runs. The resulting
60
+ files can be read by a continuous integration system that understands Ant's JUnit
61
+ report XML format, thus allowing your CI system to track test/spec successes and
62
+ failures.
83
63
  email: nick@nicksieger.com
84
64
  executables: []
85
-
86
65
  extensions: []
87
-
88
- extra_rdoc_files:
66
+ extra_rdoc_files:
89
67
  - History.txt
90
68
  - Manifest.txt
91
69
  - LICENSE.txt
92
70
  - README.rdoc
93
- files:
71
+ files:
94
72
  - History.txt
95
73
  - Manifest.txt
96
74
  - README.rdoc
@@ -122,42 +100,38 @@ files:
122
100
  - tasks/ci_reporter.rake
123
101
  homepage: http://caldersphere.rubyforge.org/ci_reporter
124
102
  licenses: []
125
-
126
103
  post_install_message:
127
- rdoc_options:
104
+ rdoc_options:
128
105
  - --main
129
106
  - README.rdoc
130
107
  - -SHN
131
108
  - -f
132
109
  - darkfish
133
- require_paths:
110
+ require_paths:
134
111
  - lib
135
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
136
113
  none: false
137
- requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- hash: 3
141
- segments:
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ segments:
142
119
  - 0
143
- version: "0"
144
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ hash: 3122054797864344964
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
122
  none: false
146
- requirements:
147
- - - ">="
148
- - !ruby/object:Gem::Version
149
- hash: 3
150
- segments:
151
- - 0
152
- version: "0"
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
153
127
  requirements: []
154
-
155
128
  rubyforge_project: caldersphere
156
129
  rubygems_version: 1.8.6
157
130
  signing_key:
158
131
  specification_version: 3
159
- summary: CI::Reporter allows you to generate reams of XML for use with continuous integration systems.
160
- test_files:
132
+ summary: CI::Reporter allows you to generate reams of XML for use with continuous
133
+ integration systems.
134
+ test_files:
161
135
  - spec/ci/reporter/cucumber_spec.rb
162
136
  - spec/ci/reporter/output_capture_spec.rb
163
137
  - spec/ci/reporter/rake/rake_tasks_spec.rb