rubytest 0.8.1 → 0.10.0
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 +5 -5
- data/HISTORY.md +49 -1
- data/README.md +88 -67
- data/bin/rubytest +9 -0
- data/demo/03_runner_reliability.md +146 -0
- data/demo/04_result_pipeline.md +160 -0
- data/demo/05_builtin_reporters.md +118 -0
- data/lib/rubytest/cli.rb +227 -0
- data/lib/rubytest/config.rb +1 -1
- data/lib/rubytest/format/abstract.rb +0 -100
- data/lib/rubytest/format/abstract_hash.rb +70 -34
- data/lib/rubytest/format/dotprogress.rb +82 -56
- data/lib/rubytest/format/outline.rb +44 -0
- data/lib/rubytest/format/progress.rb +35 -0
- data/lib/rubytest/format/summary.rb +31 -0
- data/lib/rubytest/format/tap.rb +54 -0
- data/lib/rubytest/format/tapj.rb +76 -0
- data/lib/rubytest/format/tapy.rb +77 -0
- data/lib/rubytest/recorder.rb +36 -29
- data/lib/rubytest/result.rb +54 -0
- data/lib/rubytest/runner.rb +211 -77
- data/lib/rubytest.rb +10 -35
- data/lib/test.rb +1 -8
- metadata +65 -40
- data/.index +0 -54
- data/lib/rubytest.yml +0 -54
- data/test/basic_case.rb +0 -13
- data/test/helper.rb +0 -0
data/lib/rubytest/runner.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'stringio'
|
|
2
|
+
|
|
1
3
|
module Test
|
|
2
4
|
|
|
3
5
|
# Alias for `Test.configure`.
|
|
@@ -19,11 +21,27 @@ module Test
|
|
|
19
21
|
exit -1 unless success
|
|
20
22
|
rescue => error
|
|
21
23
|
raise error if $DEBUG
|
|
22
|
-
$stderr.puts(
|
|
24
|
+
$stderr.puts(error_report(error))
|
|
23
25
|
exit -1
|
|
24
26
|
end
|
|
25
27
|
end
|
|
26
28
|
|
|
29
|
+
# What `run!` prints for an error raised outside of any test, such as one
|
|
30
|
+
# raised while a test file loads: the error's class and message, where it
|
|
31
|
+
# was raised, and how to see the rest of the backtrace.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
def self.error_report(error)
|
|
35
|
+
message = error.message.to_s
|
|
36
|
+
report = "ERROR: #{error.class}"
|
|
37
|
+
report << ": #{message}" unless message.empty? || message == error.class.name
|
|
38
|
+
if location = (error.backtrace || []).first
|
|
39
|
+
report << "\n at #{location}"
|
|
40
|
+
end
|
|
41
|
+
report << "\n(Use --debug, or ruby -d, for the full backtrace.)"
|
|
42
|
+
report
|
|
43
|
+
end
|
|
44
|
+
|
|
27
45
|
# The Test::Runner class handles the execution of tests.
|
|
28
46
|
#
|
|
29
47
|
class Runner
|
|
@@ -117,8 +135,7 @@ module Test
|
|
|
117
135
|
# Record pass, fail, error and pending tests.
|
|
118
136
|
attr :recorder
|
|
119
137
|
|
|
120
|
-
#
|
|
121
|
-
# reporter instances.
|
|
138
|
+
# Execution hooks and the reporting pipeline entry point.
|
|
122
139
|
attr :observers
|
|
123
140
|
|
|
124
141
|
# Run test suite.
|
|
@@ -139,20 +156,34 @@ module Test
|
|
|
139
156
|
# applied and before test files are required.
|
|
140
157
|
config.before.call if config.before
|
|
141
158
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
@reporter = reporter_load(format)
|
|
147
|
-
@recorder = Recorder.new
|
|
148
|
-
|
|
149
|
-
@observers = [advice, @recorder, @reporter]
|
|
150
|
-
|
|
151
|
-
observers.each{ |o| o.begin_suite(suite) }
|
|
152
|
-
run_thru(suite)
|
|
153
|
-
observers.each{ |o| o.end_suite(suite) }
|
|
159
|
+
begin
|
|
160
|
+
test_files.each do |test_file|
|
|
161
|
+
require test_file
|
|
162
|
+
end
|
|
154
163
|
|
|
155
|
-
|
|
164
|
+
@reporter = reporter_load(format)
|
|
165
|
+
@recorder = Recorder.new(@reporter)
|
|
166
|
+
|
|
167
|
+
@observers = [advice, @recorder]
|
|
168
|
+
|
|
169
|
+
started = false
|
|
170
|
+
begin
|
|
171
|
+
advice.begin_suite(suite)
|
|
172
|
+
recorder.begin_suite(suite)
|
|
173
|
+
started = true
|
|
174
|
+
run_thru(suite)
|
|
175
|
+
ensure
|
|
176
|
+
if started
|
|
177
|
+
begin
|
|
178
|
+
advice.end_suite(suite)
|
|
179
|
+
ensure
|
|
180
|
+
recorder.end_suite(suite)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
ensure
|
|
185
|
+
config.after.call if config.after
|
|
186
|
+
end
|
|
156
187
|
end
|
|
157
188
|
|
|
158
189
|
recorder.success?
|
|
@@ -174,13 +205,13 @@ module Test
|
|
|
174
205
|
|
|
175
206
|
#
|
|
176
207
|
def run_thru(list)
|
|
177
|
-
list.each do |t|
|
|
208
|
+
select(list).each do |t|
|
|
178
209
|
if t.respond_to?(:each)
|
|
179
210
|
run_case(t)
|
|
180
211
|
elsif t.respond_to?(:call)
|
|
181
212
|
run_test(t)
|
|
182
213
|
else
|
|
183
|
-
#
|
|
214
|
+
raise TypeError, "not a test or test case: #{t.inspect}"
|
|
184
215
|
end
|
|
185
216
|
end
|
|
186
217
|
end
|
|
@@ -189,20 +220,51 @@ module Test
|
|
|
189
220
|
#
|
|
190
221
|
def run_case(tcase)
|
|
191
222
|
if tcase.respond_to?(:skip?) && (reason = tcase.skip?)
|
|
192
|
-
|
|
223
|
+
advice.skip_case(tcase, reason)
|
|
224
|
+
return recorder.record(Result.new(test: tcase, kind: :case,
|
|
225
|
+
status: :skip, reason: reason))
|
|
193
226
|
end
|
|
194
227
|
|
|
195
|
-
|
|
228
|
+
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
229
|
+
before_error = nil
|
|
230
|
+
begin
|
|
231
|
+
advice.begin_case(tcase)
|
|
232
|
+
rescue *OPEN_ERRORS
|
|
233
|
+
raise
|
|
234
|
+
rescue Exception => hook_error
|
|
235
|
+
before_error = hook_error
|
|
236
|
+
end
|
|
237
|
+
recorder.begin_case(tcase)
|
|
196
238
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
239
|
+
begin
|
|
240
|
+
if before_error
|
|
241
|
+
raise before_error
|
|
242
|
+
elsif tcase.respond_to?(:call)
|
|
243
|
+
tcase.call do
|
|
244
|
+
run_thru(tcase)
|
|
245
|
+
end
|
|
246
|
+
else
|
|
247
|
+
run_thru(tcase)
|
|
248
|
+
end
|
|
249
|
+
rescue *OPEN_ERRORS
|
|
250
|
+
raise
|
|
251
|
+
rescue Exception => exception
|
|
252
|
+
advice.error(tcase, exception)
|
|
253
|
+
recorder.record(Result.new(test: tcase, kind: :case, status: :error,
|
|
254
|
+
exception: exception, elapsed: elapsed_since(started)))
|
|
255
|
+
ensure
|
|
256
|
+
begin
|
|
257
|
+
advice.end_case(tcase)
|
|
258
|
+
rescue *OPEN_ERRORS
|
|
259
|
+
raise
|
|
260
|
+
rescue Exception => exception
|
|
261
|
+
advice.error(tcase, exception)
|
|
262
|
+
recorder.record(Result.new(test: tcase, kind: :case, status: :error,
|
|
263
|
+
exception: exception, elapsed: elapsed_since(started)))
|
|
264
|
+
ensure
|
|
265
|
+
recorder.end_case(tcase)
|
|
200
266
|
end
|
|
201
|
-
else
|
|
202
|
-
run_thru( select(tcase) )
|
|
203
267
|
end
|
|
204
|
-
|
|
205
|
-
observers.each{ |o| o.end_case(tcase) }
|
|
206
268
|
end
|
|
207
269
|
|
|
208
270
|
# Run a test.
|
|
@@ -212,33 +274,88 @@ module Test
|
|
|
212
274
|
#
|
|
213
275
|
def run_test(test)
|
|
214
276
|
if test.respond_to?(:skip?) && (reason = test.skip?)
|
|
215
|
-
|
|
277
|
+
advice.skip_test(test, reason)
|
|
278
|
+
return recorder.record(Result.new(test: test, status: :skip, reason: reason))
|
|
216
279
|
end
|
|
217
280
|
|
|
218
|
-
|
|
281
|
+
started = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
|
282
|
+
exceptions = []
|
|
219
283
|
begin
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
284
|
+
advice.begin_test(test)
|
|
285
|
+
rescue *OPEN_ERRORS
|
|
286
|
+
raise
|
|
287
|
+
rescue Exception => hook_error
|
|
288
|
+
exceptions << hook_error
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
recorder.begin_test(test)
|
|
292
|
+
report_started = true
|
|
293
|
+
capture = recorder.capture_output?
|
|
294
|
+
original_stdout, original_stderr = $stdout, $stderr if capture
|
|
295
|
+
captured_stdout, captured_stderr = StringIO.new, StringIO.new if capture
|
|
296
|
+
begin
|
|
297
|
+
$stdout, $stderr = captured_stdout, captured_stderr if capture
|
|
298
|
+
begin
|
|
299
|
+
if exceptions.empty?
|
|
300
|
+
success = test.call
|
|
301
|
+
raise Assertion, "failure of #{test}" if config.hard? && !success
|
|
302
|
+
end
|
|
303
|
+
rescue *OPEN_ERRORS
|
|
304
|
+
raise
|
|
305
|
+
rescue Exception => error
|
|
306
|
+
exceptions << error
|
|
307
|
+
ensure
|
|
308
|
+
begin
|
|
309
|
+
advice.end_test(test)
|
|
310
|
+
rescue *OPEN_ERRORS
|
|
311
|
+
raise
|
|
312
|
+
rescue Exception => hook_error
|
|
313
|
+
exceptions << hook_error
|
|
314
|
+
end
|
|
225
315
|
end
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if exception.assertion?
|
|
236
|
-
observers.each{ |o| o.fail(test, exception) }
|
|
237
|
-
else
|
|
238
|
-
observers.each{ |o| o.error(test, exception) }
|
|
316
|
+
|
|
317
|
+
status, exception = outcome_for(exceptions)
|
|
318
|
+
begin
|
|
319
|
+
exception ? advice.public_send(status, test, exception) : advice.pass(test)
|
|
320
|
+
rescue *OPEN_ERRORS
|
|
321
|
+
raise
|
|
322
|
+
rescue Exception => hook_error
|
|
323
|
+
exceptions << hook_error
|
|
324
|
+
status, exception = outcome_for(exceptions)
|
|
239
325
|
end
|
|
326
|
+
result = Result.new(test: test, status: status, exception: exception,
|
|
327
|
+
exceptions: exceptions,
|
|
328
|
+
elapsed: elapsed_since(started),
|
|
329
|
+
stdout: captured_stdout&.string,
|
|
330
|
+
stderr: captured_stderr&.string)
|
|
331
|
+
ensure
|
|
332
|
+
$stdout, $stderr = original_stdout, original_stderr if capture
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
recorder.record(result)
|
|
336
|
+
ensure
|
|
337
|
+
recorder.end_test(test) if report_started
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
def elapsed_since(started)
|
|
341
|
+
Process.clock_gettime(Process::CLOCK_MONOTONIC) - started
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
def outcome_for(exceptions)
|
|
345
|
+
return [:pass, nil] if exceptions.empty?
|
|
346
|
+
|
|
347
|
+
exception = exceptions.find do |error|
|
|
348
|
+
!(NotImplementedError === error) && !error.assertion?
|
|
240
349
|
end
|
|
241
|
-
|
|
350
|
+
exception ||= exceptions.find(&:assertion?)
|
|
351
|
+
exception ||= exceptions.first
|
|
352
|
+
|
|
353
|
+
status = if NotImplementedError === exception
|
|
354
|
+
:todo
|
|
355
|
+
else
|
|
356
|
+
exception.assertion? ? :fail : :error
|
|
357
|
+
end
|
|
358
|
+
[status, exception]
|
|
242
359
|
end
|
|
243
360
|
|
|
244
361
|
# TODO: Make sure this filtering code is correct for the complex
|
|
@@ -249,29 +366,36 @@ module Test
|
|
|
249
366
|
#
|
|
250
367
|
# @return [Array] selected test cases
|
|
251
368
|
def select(cases)
|
|
369
|
+
return cases if cases.respond_to?(:ordered?) && cases.ordered?
|
|
370
|
+
return cases if config.match.empty? && config.units.empty? && config.tags.empty?
|
|
371
|
+
|
|
252
372
|
selected = []
|
|
253
|
-
|
|
254
|
-
|
|
373
|
+
cases.each do |tc|
|
|
374
|
+
unless tc.respond_to?(:each) || tc.respond_to?(:call)
|
|
375
|
+
raise TypeError, "not a test or test case: #{tc.inspect}"
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# Keep cases so their descendants can be filtered. The case itself
|
|
379
|
+
# may have a different description, unit, or tags from its tests.
|
|
380
|
+
if tc.respond_to?(:each)
|
|
255
381
|
selected << tc
|
|
382
|
+
next
|
|
256
383
|
end
|
|
257
|
-
else
|
|
258
|
-
cases.each do |tc|
|
|
259
|
-
next if tc.respond_to?(:skip?) && tc.skip?
|
|
260
|
-
next if !config.match.empty? && !config.match.any?{ |m| m =~ tc.to_s }
|
|
261
384
|
|
|
262
|
-
|
|
263
|
-
next unless tc.respond_to?(:unit)
|
|
264
|
-
next unless config.units.find{ |u| tc.unit.start_with?(u) }
|
|
265
|
-
end
|
|
385
|
+
next if !config.match.empty? && !config.match.any?{ |m| tc.to_s.include?(m) }
|
|
266
386
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
end
|
|
387
|
+
if !config.units.empty?
|
|
388
|
+
next unless tc.respond_to?(:unit)
|
|
389
|
+
next unless config.units.any?{ |u| tc.unit.to_s.start_with?(u) }
|
|
390
|
+
end
|
|
272
391
|
|
|
273
|
-
|
|
392
|
+
if !config.tags.empty?
|
|
393
|
+
next unless tc.respond_to?(:tags)
|
|
394
|
+
tc_tags = [tc.tags].flatten.map{ |t| t.to_s }
|
|
395
|
+
next if (config.tags & tc_tags).empty?
|
|
274
396
|
end
|
|
397
|
+
|
|
398
|
+
selected << tc
|
|
275
399
|
end
|
|
276
400
|
selected
|
|
277
401
|
end
|
|
@@ -283,16 +407,25 @@ module Test
|
|
|
283
407
|
def reporter_load(format)
|
|
284
408
|
format = DEFAULT_REPORT_FORMAT unless format
|
|
285
409
|
format = format.to_s.downcase
|
|
286
|
-
name = reporter_list.find{ |r|
|
|
410
|
+
name = reporter_list.find{ |r| r.start_with?(format) } || format
|
|
287
411
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
412
|
+
if KNOWN_FORMATS.include?(name)
|
|
413
|
+
require_relative "format/#{name}"
|
|
414
|
+
else
|
|
415
|
+
begin
|
|
416
|
+
require "rubytest/format/#{name}"
|
|
417
|
+
rescue LoadError => error
|
|
418
|
+
raise ArgumentError, "unknown report format #{name.inspect}" if error.path == "rubytest/format/#{name}"
|
|
419
|
+
raise
|
|
420
|
+
end
|
|
292
421
|
end
|
|
293
422
|
|
|
294
423
|
reporter = Test::Reporters.const_get(name.capitalize)
|
|
295
|
-
reporter.new(self)
|
|
424
|
+
reporter = reporter.new(self)
|
|
425
|
+
unless reporter.respond_to?(:record) && reporter.respond_to?(:finish)
|
|
426
|
+
raise ArgumentError, "report format #{name} does not support result reporting"
|
|
427
|
+
end
|
|
428
|
+
reporter
|
|
296
429
|
end
|
|
297
430
|
|
|
298
431
|
# List of known report formats.
|
|
@@ -300,7 +433,7 @@ module Test
|
|
|
300
433
|
# TODO: Could use finder gem to look these up, but that's yet another dependency.
|
|
301
434
|
#
|
|
302
435
|
KNOWN_FORMATS = %w{
|
|
303
|
-
dotprogress
|
|
436
|
+
dotprogress progress outline summary tap tapy tapj test
|
|
304
437
|
}
|
|
305
438
|
|
|
306
439
|
# Returns a list of available report types.
|
|
@@ -320,12 +453,13 @@ module Test
|
|
|
320
453
|
#
|
|
321
454
|
# @return [Array<String>]
|
|
322
455
|
def resolve_test_files
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
456
|
+
config.files.flatten.flat_map do |pattern|
|
|
457
|
+
files = Dir[pattern].flat_map do |file|
|
|
458
|
+
File.directory?(file) ? Dir[File.join(file, '**/*.rb')] : [file]
|
|
459
|
+
end
|
|
460
|
+
raise ArgumentError, "no test files match #{pattern.inspect}" if files.empty?
|
|
461
|
+
files
|
|
462
|
+
end.uniq.map{ |file| File.expand_path(file) }
|
|
329
463
|
end
|
|
330
464
|
|
|
331
465
|
# Change to directory and run block.
|
data/lib/rubytest.rb
CHANGED
|
@@ -3,43 +3,18 @@
|
|
|
3
3
|
$TEST_SUITE = [] unless defined?($TEST_SUITE)
|
|
4
4
|
$RUBY_IGNORE_CALLERS = [] unless defined?($RUBY_IGNORE_CALLERS)
|
|
5
5
|
|
|
6
|
-
#require 'brass' # TODO: Should we require BRASS ?
|
|
7
6
|
require 'ansi/core'
|
|
8
7
|
|
|
9
8
|
module Test
|
|
10
|
-
|
|
11
|
-
def self.index
|
|
12
|
-
@index ||= (
|
|
13
|
-
require 'yaml'
|
|
14
|
-
__dir__ = File.dirname(__FILE__)
|
|
15
|
-
file = File.expand_path('rubytest.yml', __dir__)
|
|
16
|
-
YAML.load_file(file)
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# Lookup missing constant in project index.
|
|
21
|
-
def self.const_missing(name)
|
|
22
|
-
index[name.to_s.downcase] || super(name)
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
if RUBY_VERSION < '1.9'
|
|
27
|
-
require 'rubytest/core_ext'
|
|
28
|
-
require 'rubytest/code_snippet'
|
|
29
|
-
require 'rubytest/config'
|
|
30
|
-
require 'rubytest/recorder'
|
|
31
|
-
require 'rubytest/advice'
|
|
32
|
-
require 'rubytest/runner'
|
|
33
|
-
require 'rubytest/format/abstract'
|
|
34
|
-
require 'rubytest/format/abstract_hash'
|
|
35
|
-
else
|
|
36
|
-
require_relative 'rubytest/core_ext'
|
|
37
|
-
require_relative 'rubytest/code_snippet'
|
|
38
|
-
require_relative 'rubytest/config'
|
|
39
|
-
require_relative 'rubytest/recorder'
|
|
40
|
-
require_relative 'rubytest/advice'
|
|
41
|
-
require_relative 'rubytest/runner'
|
|
42
|
-
require_relative 'rubytest/format/abstract'
|
|
43
|
-
require_relative 'rubytest/format/abstract_hash'
|
|
9
|
+
VERSION = '0.10.0'
|
|
44
10
|
end
|
|
45
11
|
|
|
12
|
+
require_relative 'rubytest/core_ext'
|
|
13
|
+
require_relative 'rubytest/code_snippet'
|
|
14
|
+
require_relative 'rubytest/config'
|
|
15
|
+
require_relative 'rubytest/result'
|
|
16
|
+
require_relative 'rubytest/recorder'
|
|
17
|
+
require_relative 'rubytest/advice'
|
|
18
|
+
require_relative 'rubytest/runner'
|
|
19
|
+
require_relative 'rubytest/format/abstract'
|
|
20
|
+
require_relative 'rubytest/format/abstract_hash'
|
data/lib/test.rb
CHANGED
metadata
CHANGED
|
@@ -1,109 +1,134 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rubytest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
8
|
-
autorequire:
|
|
7
|
+
- Trans
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: ansi
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.5'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '1.5'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rake
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '13'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '13'
|
|
13
40
|
- !ruby/object:Gem::Dependency
|
|
14
41
|
name: qed
|
|
15
42
|
requirement: !ruby/object:Gem::Requirement
|
|
16
43
|
requirements:
|
|
17
|
-
- -
|
|
44
|
+
- - ">="
|
|
18
45
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '
|
|
46
|
+
version: '2.9'
|
|
20
47
|
type: :development
|
|
21
48
|
prerelease: false
|
|
22
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
50
|
requirements:
|
|
24
|
-
- -
|
|
51
|
+
- - ">="
|
|
25
52
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: '
|
|
53
|
+
version: '2.9'
|
|
27
54
|
- !ruby/object:Gem::Dependency
|
|
28
55
|
name: ae
|
|
29
56
|
requirement: !ruby/object:Gem::Requirement
|
|
30
57
|
requirements:
|
|
31
|
-
- -
|
|
58
|
+
- - ">="
|
|
32
59
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
60
|
+
version: '1.8'
|
|
34
61
|
type: :development
|
|
35
62
|
prerelease: false
|
|
36
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
64
|
requirements:
|
|
38
|
-
- -
|
|
65
|
+
- - ">="
|
|
39
66
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
67
|
+
version: '1.8'
|
|
41
68
|
description: Rubytest is a universal test harness for Ruby. It can handle any compliant
|
|
42
|
-
test framework, even running tests from multiple frameworks in a single pass.
|
|
43
|
-
is the core component of the system, and is the only part strictly necessary to
|
|
44
|
-
run tests.
|
|
69
|
+
test framework, even running tests from multiple frameworks in a single pass.
|
|
45
70
|
email:
|
|
46
71
|
- transfire@gmail.com
|
|
47
|
-
executables:
|
|
72
|
+
executables:
|
|
73
|
+
- rubytest
|
|
48
74
|
extensions: []
|
|
49
|
-
extra_rdoc_files:
|
|
75
|
+
extra_rdoc_files: []
|
|
76
|
+
files:
|
|
77
|
+
- HISTORY.md
|
|
50
78
|
- LICENSE.txt
|
|
51
79
|
- README.md
|
|
52
|
-
-
|
|
53
|
-
files:
|
|
54
|
-
- .index
|
|
80
|
+
- bin/rubytest
|
|
55
81
|
- demo/01_test.md
|
|
56
82
|
- demo/02_case.md
|
|
83
|
+
- demo/03_runner_reliability.md
|
|
84
|
+
- demo/04_result_pipeline.md
|
|
85
|
+
- demo/05_builtin_reporters.md
|
|
57
86
|
- demo/applique/ae.rb
|
|
58
87
|
- demo/applique/rubytest.rb
|
|
88
|
+
- lib/rubytest.rb
|
|
59
89
|
- lib/rubytest/advice.rb
|
|
60
90
|
- lib/rubytest/autorun.rb
|
|
91
|
+
- lib/rubytest/cli.rb
|
|
61
92
|
- lib/rubytest/code_snippet.rb
|
|
62
93
|
- lib/rubytest/config.rb
|
|
94
|
+
- lib/rubytest/core_ext.rb
|
|
63
95
|
- lib/rubytest/core_ext/assertion.rb
|
|
64
96
|
- lib/rubytest/core_ext/exception.rb
|
|
65
97
|
- lib/rubytest/core_ext/file.rb
|
|
66
98
|
- lib/rubytest/core_ext/string.rb
|
|
67
|
-
- lib/rubytest/core_ext.rb
|
|
68
99
|
- lib/rubytest/format/abstract.rb
|
|
69
100
|
- lib/rubytest/format/abstract_hash.rb
|
|
70
101
|
- lib/rubytest/format/dotprogress.rb
|
|
102
|
+
- lib/rubytest/format/outline.rb
|
|
103
|
+
- lib/rubytest/format/progress.rb
|
|
104
|
+
- lib/rubytest/format/summary.rb
|
|
105
|
+
- lib/rubytest/format/tap.rb
|
|
106
|
+
- lib/rubytest/format/tapj.rb
|
|
107
|
+
- lib/rubytest/format/tapy.rb
|
|
71
108
|
- lib/rubytest/format/test.rb
|
|
72
109
|
- lib/rubytest/recorder.rb
|
|
110
|
+
- lib/rubytest/result.rb
|
|
73
111
|
- lib/rubytest/runner.rb
|
|
74
|
-
- lib/rubytest.rb
|
|
75
|
-
- lib/rubytest.yml
|
|
76
112
|
- lib/test.rb
|
|
77
|
-
|
|
78
|
-
- test/helper.rb
|
|
79
|
-
- README.md
|
|
80
|
-
- HISTORY.md
|
|
81
|
-
- LICENSE.txt
|
|
82
|
-
homepage: http://rubyworks.github.com/rubytest
|
|
113
|
+
homepage: https://github.com/rubyworks/rubytest
|
|
83
114
|
licenses:
|
|
84
115
|
- BSD-2-Clause
|
|
85
116
|
metadata: {}
|
|
86
|
-
post_install_message:
|
|
87
117
|
rdoc_options: []
|
|
88
118
|
require_paths:
|
|
89
119
|
- lib
|
|
90
120
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
121
|
requirements:
|
|
92
|
-
- -
|
|
122
|
+
- - ">="
|
|
93
123
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '
|
|
124
|
+
version: '2.7'
|
|
95
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
126
|
requirements:
|
|
97
|
-
- -
|
|
127
|
+
- - ">="
|
|
98
128
|
- !ruby/object:Gem::Version
|
|
99
129
|
version: '0'
|
|
100
130
|
requirements: []
|
|
101
|
-
|
|
102
|
-
rubygems_version: 2.0.3
|
|
103
|
-
signing_key:
|
|
131
|
+
rubygems_version: 3.6.9
|
|
104
132
|
specification_version: 4
|
|
105
133
|
summary: Ruby Universal Test Harness
|
|
106
|
-
test_files:
|
|
107
|
-
- test/helper.rb
|
|
108
|
-
- test/basic_case.rb
|
|
109
|
-
has_rdoc:
|
|
134
|
+
test_files: []
|
data/.index
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
revision: 2013
|
|
3
|
-
type: ruby
|
|
4
|
-
sources:
|
|
5
|
-
- Indexfile
|
|
6
|
-
- Gemfile
|
|
7
|
-
authors:
|
|
8
|
-
- name: trans
|
|
9
|
-
email: transfire@gmail.com
|
|
10
|
-
organizations: []
|
|
11
|
-
requirements:
|
|
12
|
-
- groups:
|
|
13
|
-
- test
|
|
14
|
-
version: '>= 0'
|
|
15
|
-
name: qed
|
|
16
|
-
- groups:
|
|
17
|
-
- test
|
|
18
|
-
version: '>= 0'
|
|
19
|
-
name: ae
|
|
20
|
-
conflicts: []
|
|
21
|
-
alternatives: []
|
|
22
|
-
resources:
|
|
23
|
-
- type: home
|
|
24
|
-
uri: http://rubyworks.github.com/rubytest
|
|
25
|
-
label: Homepage
|
|
26
|
-
- type: code
|
|
27
|
-
uri: http://github.com/rubyworks/rubytest
|
|
28
|
-
label: Source Code
|
|
29
|
-
- type: mail
|
|
30
|
-
uri: http://groups.google.com/group/rubyworks-mailinglist
|
|
31
|
-
label: Mailing List
|
|
32
|
-
repositories:
|
|
33
|
-
- name: upstream
|
|
34
|
-
scm: git
|
|
35
|
-
uri: git@github.com:rubyworks/rubytest.git
|
|
36
|
-
categories: []
|
|
37
|
-
copyrights:
|
|
38
|
-
- holder: RubyWorks
|
|
39
|
-
year: '2011'
|
|
40
|
-
license: BSD-2-Clause
|
|
41
|
-
customs: []
|
|
42
|
-
paths:
|
|
43
|
-
lib:
|
|
44
|
-
- lib
|
|
45
|
-
name: rubytest
|
|
46
|
-
title: Rubytest
|
|
47
|
-
version: 0.8.1
|
|
48
|
-
summary: Ruby Universal Test Harness
|
|
49
|
-
description: Rubytest is a universal test harness for Ruby. It can handle any compliant
|
|
50
|
-
test framework, even running tests from multiple frameworks in a single pass. This
|
|
51
|
-
is the core component of the system, and is the only part strictly necessary to
|
|
52
|
-
run tests.
|
|
53
|
-
created: '2011-07-23'
|
|
54
|
-
date: '2014-07-19'
|