ci_reporter 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/ci_reporter.gemspec +2 -2
- data/lib/ci/reporter/rspec.rb +6 -26
- data/lib/ci/reporter/version.rb +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/ci_reporter.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "ci_reporter"
|
5
|
-
s.version = "1.7.
|
5
|
+
s.version = "1.7.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Nick Sieger"]
|
9
|
-
s.date = "2012-09
|
9
|
+
s.date = "2012-10-09"
|
10
10
|
s.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."
|
11
11
|
s.email = "nick@nicksieger.com"
|
12
12
|
s.extra_rdoc_files = ["History.txt", "LICENSE.txt", "Manifest.txt", "README.rdoc"]
|
data/lib/ci/reporter/rspec.rb
CHANGED
@@ -86,20 +86,15 @@ module CI
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# Custom +RSpec+ formatter used to hook into the spec runs and capture results.
|
89
|
-
class RSpec
|
89
|
+
class RSpec
|
90
90
|
attr_accessor :report_manager
|
91
91
|
attr_accessor :formatter
|
92
92
|
def initialize(*args)
|
93
|
-
super
|
94
93
|
@formatter ||= RSpecFormatters::ProgressFormatter.new(*args)
|
95
94
|
@report_manager = ReportManager.new("spec")
|
96
95
|
@suite = nil
|
97
96
|
end
|
98
97
|
|
99
|
-
def start(spec_count)
|
100
|
-
@formatter.start(spec_count)
|
101
|
-
end
|
102
|
-
|
103
98
|
# rspec 0.9
|
104
99
|
def add_behaviour(name)
|
105
100
|
@formatter.add_behaviour(name)
|
@@ -117,10 +112,6 @@ module CI
|
|
117
112
|
@formatter.example_group_started(example_group)
|
118
113
|
new_suite(description_for(example_group))
|
119
114
|
end
|
120
|
-
|
121
|
-
def example_group_finished(example_group)
|
122
|
-
@formatter.example_group_finished(example_group)
|
123
|
-
end
|
124
115
|
|
125
116
|
def example_started(name_or_example)
|
126
117
|
@formatter.example_started(name_or_example)
|
@@ -163,30 +154,19 @@ module CI
|
|
163
154
|
spec.skipped = true
|
164
155
|
end
|
165
156
|
|
166
|
-
def start_dump
|
167
|
-
@formatter.start_dump
|
168
|
-
end
|
169
|
-
|
170
|
-
def dump_failures(*args)
|
171
|
-
@formatter.dump_failures(*args)
|
172
|
-
end
|
173
|
-
|
174
|
-
def dump_failure(*args)
|
175
|
-
@formatter.dump_failure(*args)
|
176
|
-
end
|
177
|
-
|
178
157
|
def dump_summary(*args)
|
179
158
|
@formatter.dump_summary(*args)
|
180
159
|
write_report
|
181
160
|
@formatter.dump_failures
|
182
161
|
end
|
183
162
|
|
184
|
-
def
|
185
|
-
@formatter.
|
163
|
+
def respond_to?(*args)
|
164
|
+
@formatter.respond_to?(*args)
|
186
165
|
end
|
187
166
|
|
188
|
-
|
189
|
-
|
167
|
+
# Pass through other methods to RSpec formatter for compatibility
|
168
|
+
def method_missing(meth,*args,&block)
|
169
|
+
@formatter.send(meth,*args,&block)
|
190
170
|
end
|
191
171
|
|
192
172
|
private
|
data/lib/ci/reporter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09
|
12
|
+
date: 2012-10-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -151,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
segments:
|
153
153
|
- 0
|
154
|
-
hash:
|
154
|
+
hash: 2522605448896917189
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
none: false
|
157
157
|
requirements:
|