minitest-display 0.2.0.pre2 → 0.3.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +36 -7
- data/lib/minitest/display.rb +110 -187
- data/lib/minitest/display_plugin.rb +12 -0
- data/minitest-display.gemspec +10 -8
- data/test/helper.rb +9 -3
- data/test/test_minitest-display.rb +9 -9
- metadata +17 -27
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cde9ca73e72519c9e38c1eadef6309ea2ce4c5f8
|
4
|
+
data.tar.gz: b71238f76d6d80f6f7088f47445e68a56c186bd2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69cde4c3299d922748b38366f0f55c20e4ddf81a309926e2703a974d2c4a58f41e4bf3eb104620b9766c4d6daaf77ca166b685591ebafe182eb9c69ae1c4ee54
|
7
|
+
data.tar.gz: 37c1c7e1d84d801f7a224ba8202545c683277f62065936a28c5487c8b617174825215a931afac12c13c8c2f1d61d2bdacfa9d7bb8241686e10b38ecfd1ee0c31
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,16 +1,45 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
|
5
|
-
|
4
|
+
addressable (2.3.6)
|
5
|
+
builder (3.2.2)
|
6
|
+
faraday (0.8.9)
|
7
|
+
multipart-post (~> 1.2.0)
|
8
|
+
git (1.2.8)
|
9
|
+
github_api (0.10.1)
|
10
|
+
addressable
|
11
|
+
faraday (~> 0.8.1)
|
12
|
+
hashie (>= 1.2)
|
13
|
+
multi_json (~> 1.4)
|
14
|
+
nokogiri (~> 1.5.2)
|
15
|
+
oauth2
|
16
|
+
hashie (3.3.2)
|
17
|
+
highline (1.6.21)
|
18
|
+
jeweler (1.8.8)
|
19
|
+
builder
|
6
20
|
bundler (~> 1.0)
|
7
21
|
git (>= 1.2.5)
|
22
|
+
github_api (= 0.10.1)
|
23
|
+
highline (>= 1.6.15)
|
24
|
+
nokogiri (= 1.5.10)
|
8
25
|
rake
|
9
26
|
rdoc
|
10
|
-
json (1.
|
11
|
-
|
12
|
-
|
13
|
-
|
27
|
+
json (1.8.1)
|
28
|
+
jwt (1.2.0)
|
29
|
+
minitest (5.4.3)
|
30
|
+
multi_json (1.10.1)
|
31
|
+
multi_xml (0.5.5)
|
32
|
+
multipart-post (1.2.0)
|
33
|
+
nokogiri (1.5.10)
|
34
|
+
oauth2 (1.0.0)
|
35
|
+
faraday (>= 0.8, < 0.10)
|
36
|
+
jwt (~> 1.0)
|
37
|
+
multi_json (~> 1.3)
|
38
|
+
multi_xml (~> 0.5)
|
39
|
+
rack (~> 1.2)
|
40
|
+
rack (1.6.0)
|
41
|
+
rake (10.4.2)
|
42
|
+
rdoc (4.2.0)
|
14
43
|
json (~> 1.4)
|
15
44
|
|
16
45
|
PLATFORMS
|
@@ -19,4 +48,4 @@ PLATFORMS
|
|
19
48
|
DEPENDENCIES
|
20
49
|
bundler (~> 1.0)
|
21
50
|
jeweler (~> 1.5)
|
22
|
-
minitest (
|
51
|
+
minitest (>= 5.0)
|
data/lib/minitest/display.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'minitest
|
1
|
+
require 'minitest'
|
2
2
|
|
3
3
|
class Hash
|
4
4
|
unless method_defined?(:deep_merge!)
|
@@ -18,9 +18,9 @@ class Hash
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
module
|
21
|
+
module Minitest
|
22
22
|
module Display
|
23
|
-
VERSION = '0.
|
23
|
+
VERSION = '0.3.0.pre1'
|
24
24
|
|
25
25
|
class << self
|
26
26
|
def options
|
@@ -113,210 +113,133 @@ module MiniTest
|
|
113
113
|
def printable_suite?(suite)
|
114
114
|
!DONT_PRINT_CLASSES.include?(suite.to_s)
|
115
115
|
end
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
# `record(suite, method, assertions, time, error)`
|
134
|
-
# `record_suite_finished(suite, assertions, time)`,
|
135
|
-
# `record_tests_finished(report, test_count, assertion_count, time)
|
136
|
-
#
|
137
|
-
# (Executed in that order)
|
138
|
-
#
|
139
|
-
def add_recorder(new_recorder)
|
140
|
-
new_recorder_instance = new_recorder.new(self)
|
141
|
-
@recorders << new_recorder_instance
|
142
|
-
end
|
143
|
-
|
144
|
-
def record_suite_started(suite)
|
145
|
-
run_recorder_method(:record_suite_started, suite)
|
146
|
-
end
|
147
|
-
|
148
|
-
def record_suite_finished(suite, assertions, time)
|
149
|
-
run_recorder_method(:record_suite_finished, suite, assertions, time)
|
150
|
-
end
|
151
|
-
|
152
|
-
def record_tests_started
|
153
|
-
run_recorder_method(:record_tests_started)
|
154
|
-
end
|
155
|
-
|
156
|
-
def record_tests_finished(report, test_count, assertion_count, time)
|
157
|
-
run_recorder_method(:record_tests_finished, report, test_count, assertion_count, time)
|
158
|
-
end
|
159
|
-
|
160
|
-
def record(suite, method, assertions, time, error)
|
161
|
-
run_recorder_method(:record, suite, method, assertions, time, error)
|
162
|
-
end
|
163
|
-
|
164
|
-
# Patched _run_anything
|
165
|
-
def _run_anything type
|
166
|
-
suites = TestCase.send "#{type}_suites"
|
167
|
-
return if suites.empty?
|
168
|
-
|
169
|
-
# PATCH
|
170
|
-
record_tests_started
|
171
|
-
# END
|
172
|
-
start = Time.now
|
173
|
-
|
174
|
-
puts
|
175
|
-
puts "# Running #{type}s:"
|
176
|
-
puts
|
177
|
-
|
178
|
-
@test_count, @assertion_count = 0, 0
|
179
|
-
sync = output.respond_to? :"sync=" # stupid emacs
|
180
|
-
old_sync, output.sync = output.sync, true if sync
|
181
|
-
|
182
|
-
results = _run_suites suites, type
|
183
|
-
|
184
|
-
@test_count = results.inject(0) { |sum, (tc, _)| sum + tc }
|
185
|
-
@assertion_count = results.inject(0) { |sum, (_, ac)| sum + ac }
|
186
|
-
|
187
|
-
output.sync = old_sync if sync
|
188
|
-
|
189
|
-
t = Time.now - start
|
190
|
-
|
191
|
-
puts
|
192
|
-
puts
|
193
|
-
puts "Finished #{type}s in %.6fs, %.4f tests/s, %.4f assertions/s." %
|
194
|
-
[t, test_count / t, assertion_count / t]
|
195
|
-
|
196
|
-
report.each_with_index do |msg, i|
|
197
|
-
puts "\n%3d) %s" % [i + 1, msg]
|
198
|
-
end
|
199
|
-
|
200
|
-
puts
|
201
|
-
|
202
|
-
# PATCH
|
203
|
-
record_tests_finished(report, test_count, assertion_count, t)
|
204
|
-
# END
|
205
|
-
status
|
206
|
-
end
|
207
|
-
|
208
|
-
# Patched _run_suite
|
209
|
-
def _run_suite(suite, type)
|
210
|
-
header = "#{type}_suite_header"
|
211
|
-
suite_header = send(header, suite) if respond_to? header
|
116
|
+
|
117
|
+
# Add a recorder which for each test that has a `record`.
|
118
|
+
# Optionally can also have an:
|
119
|
+
#
|
120
|
+
# `record_tests_started`,
|
121
|
+
# `record_suite_started(suite)`,
|
122
|
+
# `record(suite, method, assertions, time, error)`
|
123
|
+
# `record_suite_finished(suite, assertions, time)`,
|
124
|
+
# `record_tests_finished(test_count, assertion_count, failure_count, error_count, time)
|
125
|
+
#
|
126
|
+
# (Executed in that order)
|
127
|
+
#
|
128
|
+
def add_recorder(new_recorder)
|
129
|
+
new_recorder_instance = new_recorder.new(self)
|
130
|
+
@recorders ||= []
|
131
|
+
@recorders << new_recorder_instance
|
132
|
+
end
|
212
133
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
134
|
+
# An array of all the registered MiniTest::Display recorders
|
135
|
+
def recorders
|
136
|
+
@recorders || []
|
137
|
+
end
|
217
138
|
end
|
218
|
-
# END
|
219
|
-
|
220
|
-
filter = options[:filter] || '/./'
|
221
|
-
filter = Regexp.new $1 if filter =~ /\/(.*)\//
|
222
|
-
|
223
|
-
# PATCH
|
224
|
-
wrap_at = display.options[:wrap_at] - suite_header.length if suite_header
|
225
|
-
wrap_count = wrap_at
|
226
|
-
|
227
|
-
record_suite_started(suite)
|
228
|
-
full_start_time = Time.now
|
229
|
-
@test_times ||= Hash.new { |h, k| h[k] = [] }
|
230
139
|
|
231
|
-
|
232
|
-
assertions = suite.send("#{type}_methods").grep(filter).map { |method|
|
233
|
-
inst = suite.new method
|
234
|
-
inst._assertions = 0
|
140
|
+
class Reporter < ::Minitest::Reporter
|
235
141
|
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
142
|
+
def initialize(*args)
|
143
|
+
super
|
144
|
+
@total_assertions = 0
|
145
|
+
@total_errors = 0
|
146
|
+
@total_failures = 0
|
147
|
+
@total_tests = 0
|
148
|
+
end
|
242
149
|
|
243
|
-
|
244
|
-
|
245
|
-
|
150
|
+
def record_suite_started(suite)
|
151
|
+
if display.options[:suite_names] && display.printable_suite?(suite)
|
152
|
+
suite_header ||= suite.to_s
|
153
|
+
print display.color("\n#{suite_header}#{display.options[:suite_divider]}", :suite)
|
154
|
+
@wrap_at = display.options[:wrap_at] - suite_header.length
|
155
|
+
@wrap_count = @wrap_at
|
156
|
+
end
|
157
|
+
@suite_start = Time.now
|
158
|
+
run_recorder_method(:record_suite_started, suite)
|
159
|
+
end
|
246
160
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
when "E"
|
254
|
-
display.color(display.options[:print][:error], :error)
|
255
|
-
else
|
256
|
-
result
|
161
|
+
def record_suite_finished(suite)
|
162
|
+
@suite_finished = Time.now
|
163
|
+
time = start.to_i - finished.to_i
|
164
|
+
print "\n#{' ' * suite_header.length}#{display.options[:suite_divider]}"
|
165
|
+
print "%.2f s" % time
|
166
|
+
run_recorder_method(:record_suite_finished, suite, @assertions, time)
|
257
167
|
end
|
258
168
|
|
259
|
-
|
169
|
+
def start
|
170
|
+
@test_times ||= Hash.new { |h, k| h[k] = [] }
|
171
|
+
@tests_started = Time.now.to_i
|
172
|
+
run_recorder_method(:record_tests_started)
|
173
|
+
end
|
260
174
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
175
|
+
def report
|
176
|
+
display_slow_tests if display.options[:output_slow]
|
177
|
+
display_slow_suites if display.options[:output_slow_suites]
|
178
|
+
run_recorder_method(:record_tests_finished, @total_tests, @total_assertions, @total_failures, @total_errors, Time.now.to_i - @tests_started)
|
265
179
|
end
|
266
180
|
|
267
|
-
|
268
|
-
|
181
|
+
def record(result)
|
182
|
+
suite = result.class
|
183
|
+
if suite != @current_suite
|
184
|
+
record_suite_finished(@current_suite) if @current_suite
|
185
|
+
record_suite_started(suite)
|
186
|
+
@assertions = 0
|
187
|
+
end
|
188
|
+
@assertions += result.assertions
|
189
|
+
@total_assertions += result.assertions
|
190
|
+
@total_tests += 1
|
191
|
+
output = if result.error?
|
192
|
+
@total_errors += 1
|
193
|
+
display.color(display.options[:print][:error], :error)
|
194
|
+
elsif result.failure
|
195
|
+
@total_failures += 1
|
196
|
+
display.color(display.options[:print][:failure], :failure)
|
197
|
+
else
|
198
|
+
display.color(display.options[:print][:success], :success)
|
199
|
+
end
|
269
200
|
|
270
|
-
|
201
|
+
print output
|
271
202
|
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
return assertions.size, assertions.inject(0) { |sum, n| sum + n }
|
278
|
-
end
|
203
|
+
@wrap_count -= 1
|
204
|
+
if @wrap_count == 0
|
205
|
+
print "\n#{' ' * suite.to_s.length}#{display.options[:suite_divider]}"
|
206
|
+
@wrap_count = @wrap_at
|
207
|
+
end
|
279
208
|
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
else :success
|
285
|
-
end
|
286
|
-
io.puts display.color(format % [test_count, assertion_count, failures, errors, skips], final_status)
|
209
|
+
run_recorder_method(:record, suite, result.name, result.assertions, result.time, result.failure)
|
210
|
+
@test_times[suite] << ["#{suite}##{result.name}", result.time]
|
211
|
+
@current_suite = suite
|
212
|
+
end
|
287
213
|
|
288
|
-
|
289
|
-
|
290
|
-
|
214
|
+
def display_slow_tests
|
215
|
+
times = @test_times.values.flatten(1).sort { |a, b| b[1] <=> a[1] }
|
216
|
+
puts "Slowest tests:"
|
217
|
+
times[0..display.options[:output_slow].to_i].each do |test_name, time|
|
218
|
+
puts "%.2f s\t#{test_name}" % time
|
219
|
+
end
|
220
|
+
end
|
291
221
|
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
222
|
+
def display_slow_suites
|
223
|
+
times = @test_times.map { |suite, tests| [suite, tests.map(&:last).inject {|sum, n| sum + n }] }.sort { |a, b| b[1] <=> a[1] }
|
224
|
+
puts "Slowest suites:"
|
225
|
+
times[0..display.options[:output_slow_suites].to_i].each do |suite, time|
|
226
|
+
puts "%.2f s\t#{suite}" % time
|
227
|
+
end
|
228
|
+
end
|
299
229
|
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
230
|
+
private
|
231
|
+
def run_recorder_method(method, *args)
|
232
|
+
Minitest::Display.recorders.each do |recorder|
|
233
|
+
if recorder.respond_to?(method)
|
234
|
+
recorder.send method, *args
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
307
238
|
|
308
|
-
|
309
|
-
|
310
|
-
@recorders.each do |recorder|
|
311
|
-
if recorder.respond_to?(method)
|
312
|
-
recorder.send method, *args
|
239
|
+
def display
|
240
|
+
::Minitest::Display
|
313
241
|
end
|
314
242
|
end
|
315
|
-
end
|
316
243
|
|
317
|
-
def display
|
318
|
-
::MiniTest::Display
|
319
244
|
end
|
320
245
|
end
|
321
|
-
|
322
|
-
MiniTest::Unit.runner = MiniTest::Display::Runner.new
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require_relative 'display'
|
2
|
+
|
3
|
+
# Minitest 5 plugin hook
|
4
|
+
module Minitest
|
5
|
+
|
6
|
+
def self.plugin_display_init(options)
|
7
|
+
self.reporter.reporters.reject! {|r| r.class == Minitest::ProgressReporter }
|
8
|
+
self.reporter.reporters << Minitest::Display::Reporter.new
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
12
|
+
|
data/minitest-display.gemspec
CHANGED
@@ -2,14 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
+
# stub: minitest-display 0.3.0.pre1 ruby lib
|
5
6
|
|
6
7
|
Gem::Specification.new do |s|
|
7
8
|
s.name = "minitest-display"
|
8
|
-
s.version = "0.
|
9
|
+
s.version = "0.3.0.pre1"
|
9
10
|
|
10
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib"]
|
11
13
|
s.authors = ["Aaron Quint"]
|
12
|
-
s.date = "
|
14
|
+
s.date = "2014-12-19"
|
13
15
|
s.description = "Patches MiniTest to allow for an easily configurable output. For Ruby 1.9 :Datches MiniTest to allow for an easily configurable output. For Ruby 1.9 :D. Inspired by leftright, redgreen and other test output gems, with an emphasis on configuration and style"
|
14
16
|
s.email = "aaron@quirkey.com"
|
15
17
|
s.extra_rdoc_files = [
|
@@ -26,30 +28,30 @@ Gem::Specification.new do |s|
|
|
26
28
|
"Rakefile",
|
27
29
|
"TODO",
|
28
30
|
"lib/minitest/display.rb",
|
31
|
+
"lib/minitest/display_plugin.rb",
|
29
32
|
"minitest-display.gemspec",
|
30
33
|
"test/helper.rb",
|
31
34
|
"test/test_minitest-display.rb"
|
32
35
|
]
|
33
36
|
s.homepage = "http://github.com/quirkey/minitest-display"
|
34
37
|
s.licenses = ["MIT"]
|
35
|
-
s.
|
36
|
-
s.rubygems_version = "1.8.23"
|
38
|
+
s.rubygems_version = "2.2.2"
|
37
39
|
s.summary = "Patches MiniTest to allow for an easily configurable output. For Ruby 1.9 :D"
|
38
40
|
|
39
41
|
if s.respond_to? :specification_version then
|
40
|
-
s.specification_version =
|
42
|
+
s.specification_version = 4
|
41
43
|
|
42
44
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
43
|
-
s.add_runtime_dependency(%q<minitest>, ["
|
45
|
+
s.add_runtime_dependency(%q<minitest>, [">= 5.0"])
|
44
46
|
s.add_development_dependency(%q<bundler>, ["~> 1.0"])
|
45
47
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5"])
|
46
48
|
else
|
47
|
-
s.add_dependency(%q<minitest>, ["
|
49
|
+
s.add_dependency(%q<minitest>, [">= 5.0"])
|
48
50
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
49
51
|
s.add_dependency(%q<jeweler>, ["~> 1.5"])
|
50
52
|
end
|
51
53
|
else
|
52
|
-
s.add_dependency(%q<minitest>, ["
|
54
|
+
s.add_dependency(%q<minitest>, [">= 5.0"])
|
53
55
|
s.add_dependency(%q<bundler>, ["~> 1.0"])
|
54
56
|
s.add_dependency(%q<jeweler>, ["~> 1.5"])
|
55
57
|
end
|
data/test/helper.rb
CHANGED
@@ -10,10 +10,14 @@ end
|
|
10
10
|
require 'minitest/autorun'
|
11
11
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
12
12
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
13
|
-
|
13
|
+
|
14
|
+
# Init the plugin
|
15
|
+
Minitest.extensions = ["display"]
|
16
|
+
require "minitest/display_plugin"
|
17
|
+
|
14
18
|
$print_runs = ENV['DEBUG']
|
15
19
|
|
16
|
-
class
|
20
|
+
class Minitest::Test
|
17
21
|
attr_reader :suite_output
|
18
22
|
|
19
23
|
def capture_test_output(testcase_str)
|
@@ -24,7 +28,9 @@ class MiniTest::Unit::TestCase
|
|
24
28
|
tmpfilename = "#{tmpdir}/fake_test_suite.rb"
|
25
29
|
header = %{
|
26
30
|
require 'minitest/autorun'
|
27
|
-
|
31
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
32
|
+
Minitest.extensions = ["display"]
|
33
|
+
require "#{lib_dir}/minitest/display_plugin"
|
28
34
|
}
|
29
35
|
|
30
36
|
testcase_str = header + "\n" + testcase_str
|
@@ -1,10 +1,10 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
|
-
class TestMinitestDisplay < MiniTest::
|
3
|
+
class TestMinitestDisplay < MiniTest::Test
|
4
4
|
|
5
5
|
def test_runs_basic_test_with_default_settings
|
6
6
|
capture_test_output <<-TESTCASE
|
7
|
-
class BasicTest <
|
7
|
+
class BasicTest < Minitest::Test
|
8
8
|
|
9
9
|
def test_truth
|
10
10
|
assert true
|
@@ -22,7 +22,7 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
22
22
|
|
23
23
|
def test_runs_basic_test_with_failures
|
24
24
|
capture_test_output <<-TESTCASE
|
25
|
-
class BasicTest <
|
25
|
+
class BasicTest < Minitest::Test
|
26
26
|
|
27
27
|
def test_truth
|
28
28
|
assert false
|
@@ -41,7 +41,7 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
41
41
|
|
42
42
|
def test_runs_basic_test_with_multiple_suites
|
43
43
|
capture_test_output <<-TESTCASE
|
44
|
-
class BasicTest <
|
44
|
+
class BasicTest < Minitest::Test
|
45
45
|
|
46
46
|
def test_truth
|
47
47
|
assert false
|
@@ -52,7 +52,7 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
class AnotherBasicTest <
|
55
|
+
class AnotherBasicTest < Minitest::Test
|
56
56
|
|
57
57
|
def test_truth
|
58
58
|
assert false
|
@@ -78,7 +78,7 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
78
78
|
:success => 'PASS'
|
79
79
|
}
|
80
80
|
}
|
81
|
-
class PrintTest <
|
81
|
+
class PrintTest < Minitest::Test
|
82
82
|
|
83
83
|
def test_truth
|
84
84
|
assert false
|
@@ -104,7 +104,7 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
104
104
|
},
|
105
105
|
:output_slow => true
|
106
106
|
}
|
107
|
-
class PrintTest <
|
107
|
+
class PrintTest < Minitest::Test
|
108
108
|
|
109
109
|
def test_truth
|
110
110
|
assert false
|
@@ -140,9 +140,9 @@ class TestMinitestDisplay < MiniTest::Unit::TestCase
|
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
-
MiniTest::
|
143
|
+
MiniTest::Display.add_recorder TestRecorder
|
144
144
|
|
145
|
-
class PrintTest <
|
145
|
+
class PrintTest < Minitest::Test
|
146
146
|
|
147
147
|
def test_truth
|
148
148
|
assert false
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-display
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.3.0.pre1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Aaron Quint
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-12-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: minitest
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '5.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '5.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '1.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '1.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: jeweler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '1.5'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '1.5'
|
62
55
|
description: Patches MiniTest to allow for an easily configurable output. For Ruby
|
@@ -71,7 +64,7 @@ extra_rdoc_files:
|
|
71
64
|
- README.md
|
72
65
|
- TODO
|
73
66
|
files:
|
74
|
-
- .document
|
67
|
+
- ".document"
|
75
68
|
- Gemfile
|
76
69
|
- Gemfile.lock
|
77
70
|
- LICENSE.txt
|
@@ -79,36 +72,33 @@ files:
|
|
79
72
|
- Rakefile
|
80
73
|
- TODO
|
81
74
|
- lib/minitest/display.rb
|
75
|
+
- lib/minitest/display_plugin.rb
|
82
76
|
- minitest-display.gemspec
|
83
77
|
- test/helper.rb
|
84
78
|
- test/test_minitest-display.rb
|
85
79
|
homepage: http://github.com/quirkey/minitest-display
|
86
80
|
licenses:
|
87
81
|
- MIT
|
82
|
+
metadata: {}
|
88
83
|
post_install_message:
|
89
84
|
rdoc_options: []
|
90
85
|
require_paths:
|
91
86
|
- lib
|
92
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
88
|
requirements:
|
95
|
-
- -
|
89
|
+
- - ">="
|
96
90
|
- !ruby/object:Gem::Version
|
97
91
|
version: '0'
|
98
|
-
segments:
|
99
|
-
- 0
|
100
|
-
hash: -4125289219123981824
|
101
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
93
|
requirements:
|
104
|
-
- -
|
94
|
+
- - ">"
|
105
95
|
- !ruby/object:Gem::Version
|
106
96
|
version: 1.3.1
|
107
97
|
requirements: []
|
108
98
|
rubyforge_project:
|
109
|
-
rubygems_version:
|
99
|
+
rubygems_version: 2.2.2
|
110
100
|
signing_key:
|
111
|
-
specification_version:
|
101
|
+
specification_version: 4
|
112
102
|
summary: Patches MiniTest to allow for an easily configurable output. For Ruby 1.9
|
113
103
|
:D
|
114
104
|
test_files: []
|