test-unit 2.5.2 → 2.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -7
- data/lib/test/unit.rb +5 -3
- data/lib/test/unit/assertions.rb +82 -16
- data/lib/test/unit/attribute-matcher.rb +26 -0
- data/lib/test/unit/autorunner.rb +14 -0
- data/lib/test/unit/diff.rb +6 -0
- data/lib/test/unit/testcase.rb +3 -1
- data/lib/test/unit/ui/console/testrunner.rb +8 -0
- data/lib/test/unit/version.rb +1 -1
- data/test/test-assertions.rb +60 -0
- data/test/test-attribute-matcher.rb +38 -0
- data/test/test-attribute.rb +26 -0
- metadata +103 -78
data/Rakefile
CHANGED
@@ -22,13 +22,6 @@ doc_en_dir = reference_base_dir + "en"
|
|
22
22
|
html_base_dir = Pathname.new("doc/html")
|
23
23
|
html_reference_dir = html_base_dir + spec.name
|
24
24
|
YARD::Rake::YardocTask.new do |task|
|
25
|
-
task.options += ["--title", spec.name]
|
26
|
-
# task.options += ["--charset", "UTF-8"]
|
27
|
-
task.options += ["--readme", "README.textile"]
|
28
|
-
task.options += ["--files", "doc/text/**/*"]
|
29
|
-
task.options += ["--output-dir", doc_en_dir.to_s]
|
30
|
-
task.options += ["--charset", "utf-8"]
|
31
|
-
task.files += FileList["lib/**/*.rb"]
|
32
25
|
end
|
33
26
|
|
34
27
|
task :yard do
|
data/lib/test/unit.rb
CHANGED
@@ -496,8 +496,10 @@ module Test # :nodoc:
|
|
496
496
|
end
|
497
497
|
end
|
498
498
|
|
499
|
-
|
500
|
-
|
501
|
-
|
499
|
+
Module.new do
|
500
|
+
at_exit do
|
501
|
+
if $!.nil? and Test::Unit::AutoRunner.need_auto_run?
|
502
|
+
exit Test::Unit::AutoRunner.run
|
503
|
+
end
|
502
504
|
end
|
503
505
|
end
|
data/lib/test/unit/assertions.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Author:: Nathaniel Talbott.
|
2
2
|
# Copyright:: Copyright (c) 2000-2003 Nathaniel Talbott. All rights reserved.
|
3
|
-
# Copyright (c) 2009-
|
3
|
+
# Copyright (c) 2009-2012 Kouhei Sutou. All rights reserved.
|
4
4
|
# License:: Ruby license.
|
5
5
|
|
6
6
|
require 'test/unit/assertionfailederror'
|
@@ -85,6 +85,47 @@ module Test
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
# Asserts that +object+ is false or nil.
|
89
|
+
#
|
90
|
+
# @note Just for minitest compatibility. :<
|
91
|
+
#
|
92
|
+
# @param [Object] object The object to be asserted.
|
93
|
+
# @return [void]
|
94
|
+
#
|
95
|
+
# @example Pass patterns
|
96
|
+
# refute(false) # => pass
|
97
|
+
# refute(nil) # => pass
|
98
|
+
#
|
99
|
+
# @example Fialure patterns
|
100
|
+
# refute(true) # => failure
|
101
|
+
# refute("string") # => failure
|
102
|
+
#
|
103
|
+
# @since 2.5.3
|
104
|
+
def refute(object, message=nil)
|
105
|
+
_wrap_assertion do
|
106
|
+
assertion_message = nil
|
107
|
+
case message
|
108
|
+
when nil, String, Proc
|
109
|
+
when AssertionMessage
|
110
|
+
assertion_message = message
|
111
|
+
else
|
112
|
+
error_message = "assertion message must be String, Proc or "
|
113
|
+
error_message << "#{AssertionMessage}: "
|
114
|
+
error_message << "<#{message.inspect}>(<#{message.class}>)"
|
115
|
+
raise ArgumentError, error_message, filter_backtrace(caller)
|
116
|
+
end
|
117
|
+
assert_block("refute should not be called with a block.") do
|
118
|
+
!block_given?
|
119
|
+
end
|
120
|
+
assertion_message ||= build_message(message,
|
121
|
+
"<?> is neither nil or false.",
|
122
|
+
object)
|
123
|
+
assert_block(assertion_message) do
|
124
|
+
not object
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
88
129
|
##
|
89
130
|
# Passes if +expected+ == +actual+.
|
90
131
|
#
|
@@ -163,15 +204,8 @@ EOT
|
|
163
204
|
_assert_raise(assert_expected_exception, *args, &block)
|
164
205
|
end
|
165
206
|
|
166
|
-
|
167
|
-
|
168
|
-
#
|
169
|
-
# Will be deprecated in 1.9, and removed in 2.0.
|
170
|
-
|
171
|
-
public
|
172
|
-
def assert_raises(*args, &block)
|
173
|
-
assert_raise(*args, &block)
|
174
|
-
end
|
207
|
+
# Just for minitest compatibility. :<
|
208
|
+
alias_method :assert_raises, :assert_raise
|
175
209
|
|
176
210
|
##
|
177
211
|
# Passes if the block raises one of the given
|
@@ -344,6 +378,11 @@ EOT
|
|
344
378
|
end
|
345
379
|
end
|
346
380
|
|
381
|
+
# Just for minitest compatibility. :<
|
382
|
+
#
|
383
|
+
# @since 2.5.3
|
384
|
+
alias_method :refute_respond_to, :assert_not_respond_to
|
385
|
+
|
347
386
|
##
|
348
387
|
# Passes if +string+ =~ +pattern+.
|
349
388
|
#
|
@@ -466,6 +505,11 @@ EOT
|
|
466
505
|
assert_block(full_message) { !actual.equal?(expected) }
|
467
506
|
end
|
468
507
|
|
508
|
+
# Just for minitest compatibility. :<
|
509
|
+
#
|
510
|
+
# @since 2.5.3
|
511
|
+
alias_method :refute_same, :assert_not_same
|
512
|
+
|
469
513
|
##
|
470
514
|
# Passes if +expected+ != +actual+
|
471
515
|
#
|
@@ -478,6 +522,11 @@ EOT
|
|
478
522
|
assert_block(full_message) { expected != actual }
|
479
523
|
end
|
480
524
|
|
525
|
+
# Just for minitest compatibility. :<
|
526
|
+
#
|
527
|
+
# @since 2.5.3
|
528
|
+
alias_method :refute_equal, :assert_not_equal
|
529
|
+
|
481
530
|
##
|
482
531
|
# Passes if ! +object+ .nil?
|
483
532
|
#
|
@@ -490,6 +539,11 @@ EOT
|
|
490
539
|
assert_block(full_message){!object.nil?}
|
491
540
|
end
|
492
541
|
|
542
|
+
# Just for minitest compatibility. :<
|
543
|
+
#
|
544
|
+
# @since 2.5.3
|
545
|
+
alias_method :refute_nil, :assert_not_nil
|
546
|
+
|
493
547
|
##
|
494
548
|
# Passes if +regexp+ !~ +string+
|
495
549
|
#
|
@@ -510,6 +564,11 @@ EOT
|
|
510
564
|
end
|
511
565
|
end
|
512
566
|
|
567
|
+
# Just for minitest compatibility. :<
|
568
|
+
#
|
569
|
+
# @since 2.5.3
|
570
|
+
alias_method :refute_match, :assert_not_match
|
571
|
+
|
513
572
|
##
|
514
573
|
# Deprecated. Use #assert_not_match instead.
|
515
574
|
#
|
@@ -578,13 +637,10 @@ EOT
|
|
578
637
|
end
|
579
638
|
end
|
580
639
|
|
581
|
-
|
582
|
-
# Alias of assert_throw.
|
640
|
+
# Just for minitest compatibility. :<
|
583
641
|
#
|
584
|
-
#
|
585
|
-
|
586
|
-
assert_throw(*args, &block)
|
587
|
-
end
|
642
|
+
# @since 2.5.3
|
643
|
+
alias_method :assert_throws, :assert_throw
|
588
644
|
|
589
645
|
##
|
590
646
|
# Passes if block does not throw anything.
|
@@ -661,6 +717,11 @@ EOT
|
|
661
717
|
end
|
662
718
|
end
|
663
719
|
|
720
|
+
# Just for minitest compatibility. :<
|
721
|
+
#
|
722
|
+
# @since 2.5.3
|
723
|
+
alias_method :refute_in_delta, :assert_not_in_delta
|
724
|
+
|
664
725
|
# :stopdoc:
|
665
726
|
private
|
666
727
|
def _assert_in_delta_validate_arguments(expected_float,
|
@@ -1285,6 +1346,11 @@ EOT
|
|
1285
1346
|
end
|
1286
1347
|
end
|
1287
1348
|
|
1349
|
+
# Just for minitest compatibility. :<
|
1350
|
+
#
|
1351
|
+
# @since 2.5.3
|
1352
|
+
alias_method :assert_includes, :assert_include
|
1353
|
+
|
1288
1354
|
##
|
1289
1355
|
# Passes if +collection+ doesn't include +object+.
|
1290
1356
|
#
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Test
|
2
|
+
module Unit
|
3
|
+
class AttributeMatcher
|
4
|
+
def initialize(test)
|
5
|
+
@test = test
|
6
|
+
end
|
7
|
+
|
8
|
+
def match?(expression)
|
9
|
+
matched = instance_eval(expression)
|
10
|
+
if matched.nil?
|
11
|
+
false
|
12
|
+
else
|
13
|
+
matched
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def method_missing(name, *args)
|
18
|
+
if args.empty?
|
19
|
+
@test[name]
|
20
|
+
else
|
21
|
+
super
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/test/unit/autorunner.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'test/unit/color-scheme'
|
2
2
|
require 'test/unit/priority'
|
3
|
+
require 'test/unit/attribute-matcher'
|
3
4
|
require 'optparse'
|
4
5
|
|
5
6
|
module Test
|
@@ -276,6 +277,19 @@ module Test
|
|
276
277
|
end
|
277
278
|
end
|
278
279
|
|
280
|
+
o.on('--attribute=EXPRESSION', String,
|
281
|
+
"Runs tests that matches EXPRESSION.",
|
282
|
+
"EXPRESSION is evaluated as Ruby's expression.",
|
283
|
+
"Test attribute name can be used with no receiver in EXPRESSION.",
|
284
|
+
"EXPRESSION examples:",
|
285
|
+
" !slow",
|
286
|
+
" tag == 'important' and !slow") do |expression|
|
287
|
+
@filters << lambda do |test|
|
288
|
+
matcher = AttributeMatcher.new(test)
|
289
|
+
matcher.match?(expression)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
279
293
|
priority_filter = Proc.new do |test|
|
280
294
|
if @filters == [priority_filter]
|
281
295
|
Priority::Checker.new(test).need_to_run?
|
data/lib/test/unit/diff.rb
CHANGED
@@ -723,6 +723,12 @@ module Test
|
|
723
723
|
end
|
724
724
|
|
725
725
|
def diff(differ_class, from, to, options={})
|
726
|
+
if from.respond_to?(:valid_encoding?) and not from.valid_encoding?
|
727
|
+
from = from.dup.force_encoding("ASCII-8BIT")
|
728
|
+
end
|
729
|
+
if to.respond_to?(:valid_encoding?) and not to.valid_encoding?
|
730
|
+
to = to.dup.force_encoding("ASCII-8BIT")
|
731
|
+
end
|
726
732
|
differ = differ_class.new(from.split(/\r?\n/), to.split(/\r?\n/))
|
727
733
|
lines = differ.diff(options)
|
728
734
|
if Object.const_defined?(:EncodingError)
|
data/lib/test/unit/testcase.rb
CHANGED
@@ -106,6 +106,7 @@ module Test
|
|
106
106
|
def inherited(sub_class) # :nodoc:
|
107
107
|
require "test/unit"
|
108
108
|
DESCENDANTS << sub_class
|
109
|
+
super
|
109
110
|
end
|
110
111
|
|
111
112
|
@@added_methods = {}
|
@@ -289,7 +290,8 @@ module Test
|
|
289
290
|
# ...
|
290
291
|
# end
|
291
292
|
def description(value, target=nil)
|
292
|
-
|
293
|
+
targets = [target].compact
|
294
|
+
attribute(:description, value, {}, *targets)
|
293
295
|
end
|
294
296
|
|
295
297
|
# Defines a sub test case.
|
@@ -268,6 +268,14 @@ module Test
|
|
268
268
|
output("")
|
269
269
|
from, to = prepare_for_diff(failure.expected, failure.actual)
|
270
270
|
if from and to
|
271
|
+
if need_encoding
|
272
|
+
unless from.valid_encoding?
|
273
|
+
from = from.dup.force_encoding("ASCII-8BIT")
|
274
|
+
end
|
275
|
+
unless to.valid_encoding?
|
276
|
+
to = to.dup.force_encoding("ASCII-8BIT")
|
277
|
+
end
|
278
|
+
end
|
271
279
|
from_lines = from.split(/\r?\n/)
|
272
280
|
to_lines = to.split(/\r?\n/)
|
273
281
|
if need_encoding
|
data/lib/test/unit/version.rb
CHANGED
data/test/test-assertions.rb
CHANGED
@@ -1351,6 +1351,66 @@ EOM
|
|
1351
1351
|
end
|
1352
1352
|
end
|
1353
1353
|
|
1354
|
+
class TestRefute < TestCase
|
1355
|
+
include AssertionCheckable
|
1356
|
+
|
1357
|
+
class TestPass < self
|
1358
|
+
def test_nil
|
1359
|
+
check_nothing_fails do
|
1360
|
+
refute(nil)
|
1361
|
+
end
|
1362
|
+
end
|
1363
|
+
|
1364
|
+
def test_false
|
1365
|
+
check_nothing_fails do
|
1366
|
+
refute(false)
|
1367
|
+
end
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
def test_with_message
|
1371
|
+
check_nothing_fails do
|
1372
|
+
refute(nil, "successful refute")
|
1373
|
+
end
|
1374
|
+
end
|
1375
|
+
end
|
1376
|
+
|
1377
|
+
class TestFailure < self
|
1378
|
+
def test_true
|
1379
|
+
check_fail("<true> is neither nil or false.") do
|
1380
|
+
refute(true)
|
1381
|
+
end
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
def test_with_message
|
1385
|
+
check_fail("failed refute.\n" +
|
1386
|
+
"<true> is neither nil or false.") do
|
1387
|
+
refute(true, "failed refute")
|
1388
|
+
end
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
def test_fail_with_assertion_message
|
1392
|
+
check_fail("user message.\n" +
|
1393
|
+
"placeholder <:in> message") do
|
1394
|
+
refute(true, build_message("user message",
|
1395
|
+
"placeholder <?> message",
|
1396
|
+
:in))
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
def test_error_invalid_message_true
|
1401
|
+
check_fail("assertion message must be String, Proc or " +
|
1402
|
+
"Test::Unit::Assertions::AssertionMessage: " +
|
1403
|
+
"<false>(<FalseClass>)") do
|
1404
|
+
begin
|
1405
|
+
refute(true, false)
|
1406
|
+
rescue ArgumentError
|
1407
|
+
raise AssertionFailedError, $!.message
|
1408
|
+
end
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
end
|
1412
|
+
end
|
1413
|
+
|
1354
1414
|
class TestAssertInDelta < TestCase
|
1355
1415
|
include AssertionCheckable
|
1356
1416
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'testunit-test-util'
|
3
|
+
|
4
|
+
class TestAttributeMatcher < Test::Unit::TestCase
|
5
|
+
include TestUnitTestUtil
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@test = {}
|
9
|
+
@matcher = Test::Unit::AttributeMatcher.new(@test)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_nonexistent
|
13
|
+
assert_false(@matcher.match?("nonexistent"))
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_existent
|
17
|
+
@test[:existent] = true
|
18
|
+
assert_true(@matcher.match?("existent"))
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_and
|
22
|
+
@test[:slow] = true
|
23
|
+
@test[:important] = true
|
24
|
+
assert_true(@matcher.match?("important and slow"))
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_complex
|
28
|
+
@test[:tags] = [:slow, :web]
|
29
|
+
@test[:bug] = "2929"
|
30
|
+
assert_true(@matcher.match?("tags.include?(:web) or bug == '29'"))
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_exception
|
34
|
+
assert_raise(NoMethodError) do
|
35
|
+
@matcher.match?("nonexistent > 100")
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/test/test-attribute.rb
CHANGED
@@ -83,4 +83,30 @@ class TestUnitAttribute < Test::Unit::TestCase
|
|
83
83
|
],
|
84
84
|
changed_attributes)
|
85
85
|
end
|
86
|
+
|
87
|
+
class TestDescription < self
|
88
|
+
def test_decoration_style
|
89
|
+
test_case = Class.new(TestStack) do
|
90
|
+
description "Test for push"
|
91
|
+
def test_push
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
test_push = test_case.new("test_push")
|
96
|
+
assert_equal({"description" => "Test for push"},
|
97
|
+
test_push.attributes)
|
98
|
+
end
|
99
|
+
|
100
|
+
def test_explicit_test_name_style
|
101
|
+
test_case = Class.new(TestStack) do
|
102
|
+
def test_push
|
103
|
+
end
|
104
|
+
description "Test for push", :test_push
|
105
|
+
end
|
106
|
+
|
107
|
+
test_push = test_case.new("test_push")
|
108
|
+
assert_equal({"description" => "Test for push"},
|
109
|
+
test_push.attributes)
|
110
|
+
end
|
111
|
+
end
|
86
112
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-unit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -60,6 +60,22 @@ dependencies:
|
|
60
60
|
- - ! '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: RedCloth
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
63
79
|
description: ! 'Ruby 1.9.x bundles minitest not Test::Unit. Test::Unit
|
64
80
|
|
65
81
|
bundled in Ruby 1.8.x had not been improved but unbundled
|
@@ -80,89 +96,91 @@ files:
|
|
80
96
|
- COPYING
|
81
97
|
- GPL
|
82
98
|
- PSFL
|
83
|
-
- lib/test
|
84
|
-
- lib/test/unit.rb
|
99
|
+
- lib/test/unit/autorunner.rb
|
85
100
|
- lib/test/unit/attribute.rb
|
101
|
+
- lib/test/unit/failure.rb
|
86
102
|
- lib/test/unit/data.rb
|
103
|
+
- lib/test/unit/testsuitecreator.rb
|
87
104
|
- lib/test/unit/color.rb
|
88
|
-
- lib/test/unit/
|
89
|
-
- lib/test/unit/
|
90
|
-
- lib/test/unit/
|
91
|
-
- lib/test/unit/
|
105
|
+
- lib/test/unit/exceptionhandler.rb
|
106
|
+
- lib/test/unit/assertionfailederror.rb
|
107
|
+
- lib/test/unit/testresult.rb
|
108
|
+
- lib/test/unit/util/observable.rb
|
109
|
+
- lib/test/unit/util/method-owner-finder.rb
|
110
|
+
- lib/test/unit/util/procwrapper.rb
|
111
|
+
- lib/test/unit/util/output.rb
|
112
|
+
- lib/test/unit/util/backtracefilter.rb
|
113
|
+
- lib/test/unit/ui/xml/testrunner.rb
|
114
|
+
- lib/test/unit/ui/testrunnermediator.rb
|
115
|
+
- lib/test/unit/ui/testrunner.rb
|
92
116
|
- lib/test/unit/ui/testrunnerutilities.rb
|
93
117
|
- lib/test/unit/ui/emacs/testrunner.rb
|
94
|
-
- lib/test/unit/ui/testrunner.rb
|
95
|
-
- lib/test/unit/ui/xml/testrunner.rb
|
96
|
-
- lib/test/unit/ui/console/outputlevel.rb
|
97
118
|
- lib/test/unit/ui/console/testrunner.rb
|
98
|
-
- lib/test/unit/ui/
|
99
|
-
- lib/test/unit/
|
100
|
-
- lib/test/unit/
|
101
|
-
- lib/test/unit/autorunner.rb
|
102
|
-
- lib/test/unit/fault-location-detector.rb
|
103
|
-
- lib/test/unit/exceptionhandler.rb
|
119
|
+
- lib/test/unit/ui/console/outputlevel.rb
|
120
|
+
- lib/test/unit/attribute-matcher.rb
|
121
|
+
- lib/test/unit/version.rb
|
104
122
|
- lib/test/unit/assertions.rb
|
105
|
-
- lib/test/unit/error.rb
|
106
|
-
- lib/test/unit/omission.rb
|
107
|
-
- lib/test/unit/fixture.rb
|
108
|
-
- lib/test/unit/collector/descendant.rb
|
109
|
-
- lib/test/unit/collector/load.rb
|
110
|
-
- lib/test/unit/collector/xml.rb
|
111
|
-
- lib/test/unit/collector/dir.rb
|
112
|
-
- lib/test/unit/collector/objectspace.rb
|
113
|
-
- lib/test/unit/code-snippet-fetcher.rb
|
114
|
-
- lib/test/unit/testsuitecreator.rb
|
115
123
|
- lib/test/unit/color-scheme.rb
|
116
|
-
- lib/test/unit/testcase.rb
|
117
|
-
- lib/test/unit/util/method-owner-finder.rb
|
118
|
-
- lib/test/unit/util/output.rb
|
119
|
-
- lib/test/unit/util/procwrapper.rb
|
120
|
-
- lib/test/unit/util/observable.rb
|
121
|
-
- lib/test/unit/util/backtracefilter.rb
|
122
|
-
- lib/test/unit/pending.rb
|
123
|
-
- lib/test/unit/testresult.rb
|
124
124
|
- lib/test/unit/collector.rb
|
125
125
|
- lib/test/unit/diff.rb
|
126
|
+
- lib/test/unit/pending.rb
|
127
|
+
- lib/test/unit/omission.rb
|
128
|
+
- lib/test/unit/testsuite.rb
|
129
|
+
- lib/test/unit/fault-location-detector.rb
|
126
130
|
- lib/test/unit/priority.rb
|
131
|
+
- lib/test/unit/runner/xml.rb
|
132
|
+
- lib/test/unit/runner/console.rb
|
133
|
+
- lib/test/unit/runner/emacs.rb
|
127
134
|
- lib/test/unit/notification.rb
|
128
|
-
- lib/test/unit/
|
129
|
-
-
|
135
|
+
- lib/test/unit/fixture.rb
|
136
|
+
- lib/test/unit/code-snippet-fetcher.rb
|
137
|
+
- lib/test/unit/testcase.rb
|
138
|
+
- lib/test/unit/collector/dir.rb
|
139
|
+
- lib/test/unit/collector/xml.rb
|
140
|
+
- lib/test/unit/collector/load.rb
|
141
|
+
- lib/test/unit/collector/objectspace.rb
|
142
|
+
- lib/test/unit/collector/descendant.rb
|
143
|
+
- lib/test/unit/error.rb
|
144
|
+
- lib/test/unit.rb
|
145
|
+
- lib/test-unit.rb
|
130
146
|
- sample/subtracter.rb
|
147
|
+
- sample/adder.rb
|
131
148
|
- sample/test_user.rb
|
149
|
+
- sample/test_subtracter.rb
|
132
150
|
- sample/test_adder.rb
|
133
|
-
-
|
134
|
-
- test/testunit-test-util.rb
|
151
|
+
- test/run-test.rb
|
135
152
|
- test/test-testcase.rb
|
136
|
-
- test/ui/test_testrunmediator.rb
|
137
|
-
- test/test_testresult.rb
|
138
|
-
- test/test-pending.rb
|
139
153
|
- test/test-emacs-runner.rb
|
140
|
-
- test/test-
|
141
|
-
- test/test-
|
154
|
+
- test/testunit-test-util.rb
|
155
|
+
- test/test-code-snippet.rb
|
142
156
|
- test/test_failure.rb
|
143
|
-
- test/test-data.rb
|
144
|
-
- test/test_testsuite.rb
|
145
|
-
- test/collector/test_objectspace.rb
|
146
|
-
- test/collector/test-descendant.rb
|
147
|
-
- test/collector/test_dir.rb
|
148
|
-
- test/collector/test-load.rb
|
149
|
-
- test/run-test.rb
|
150
157
|
- test/test-assertions.rb
|
158
|
+
- test/test-attribute.rb
|
151
159
|
- test/test-priority.rb
|
160
|
+
- test/test-fixture.rb
|
161
|
+
- test/test-color-scheme.rb
|
152
162
|
- test/util/test_backtracefilter.rb
|
153
|
-
- test/util/test_observable.rb
|
154
|
-
- test/util/test_procwrapper.rb
|
155
|
-
- test/util/test-method-owner-finder.rb
|
156
163
|
- test/util/test-output.rb
|
164
|
+
- test/util/test-method-owner-finder.rb
|
165
|
+
- test/util/test_procwrapper.rb
|
166
|
+
- test/util/test_observable.rb
|
167
|
+
- test/test-diff.rb
|
168
|
+
- test/ui/test_testrunmediator.rb
|
157
169
|
- test/fixtures/plus.csv
|
158
170
|
- test/test-fault-location-detector.rb
|
159
|
-
- test/test-code-snippet.rb
|
160
|
-
- test/test_error.rb
|
161
|
-
- test/test-diff.rb
|
162
171
|
- test/test-notification.rb
|
163
|
-
- test/
|
172
|
+
- test/test_testsuite.rb
|
173
|
+
- test/test_testresult.rb
|
164
174
|
- test/test-omission.rb
|
165
175
|
- test/test-color.rb
|
176
|
+
- test/test_error.rb
|
177
|
+
- test/test-data.rb
|
178
|
+
- test/test-pending.rb
|
179
|
+
- test/test-attribute-matcher.rb
|
180
|
+
- test/collector/test_objectspace.rb
|
181
|
+
- test/collector/test-load.rb
|
182
|
+
- test/collector/test-descendant.rb
|
183
|
+
- test/collector/test_dir.rb
|
166
184
|
homepage: http://test-unit.rubyforge.org/
|
167
185
|
licenses:
|
168
186
|
- Ruby's and PSFL (lib/test/unit/diff.rb)
|
@@ -176,12 +194,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
194
|
- - ! '>='
|
177
195
|
- !ruby/object:Gem::Version
|
178
196
|
version: '0'
|
197
|
+
segments:
|
198
|
+
- 0
|
199
|
+
hash: -1080508134508588033
|
179
200
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
201
|
none: false
|
181
202
|
requirements:
|
182
203
|
- - ! '>='
|
183
204
|
- !ruby/object:Gem::Version
|
184
205
|
version: '0'
|
206
|
+
segments:
|
207
|
+
- 0
|
208
|
+
hash: -1080508134508588033
|
185
209
|
requirements: []
|
186
210
|
rubyforge_project: test-unit
|
187
211
|
rubygems_version: 1.8.23
|
@@ -189,36 +213,37 @@ signing_key:
|
|
189
213
|
specification_version: 3
|
190
214
|
summary: test-unit - Improved version of Test::Unit bundled in Ruby 1.8.x.
|
191
215
|
test_files:
|
192
|
-
- test/
|
216
|
+
- test/run-test.rb
|
193
217
|
- test/test-testcase.rb
|
194
|
-
- test/ui/test_testrunmediator.rb
|
195
|
-
- test/test_testresult.rb
|
196
|
-
- test/test-pending.rb
|
197
218
|
- test/test-emacs-runner.rb
|
198
|
-
- test/test-
|
199
|
-
- test/test-
|
219
|
+
- test/testunit-test-util.rb
|
220
|
+
- test/test-code-snippet.rb
|
200
221
|
- test/test_failure.rb
|
201
|
-
- test/test-data.rb
|
202
|
-
- test/test_testsuite.rb
|
203
|
-
- test/collector/test_objectspace.rb
|
204
|
-
- test/collector/test-descendant.rb
|
205
|
-
- test/collector/test_dir.rb
|
206
|
-
- test/collector/test-load.rb
|
207
|
-
- test/run-test.rb
|
208
222
|
- test/test-assertions.rb
|
223
|
+
- test/test-attribute.rb
|
209
224
|
- test/test-priority.rb
|
225
|
+
- test/test-fixture.rb
|
226
|
+
- test/test-color-scheme.rb
|
210
227
|
- test/util/test_backtracefilter.rb
|
211
|
-
- test/util/test_observable.rb
|
212
|
-
- test/util/test_procwrapper.rb
|
213
|
-
- test/util/test-method-owner-finder.rb
|
214
228
|
- test/util/test-output.rb
|
229
|
+
- test/util/test-method-owner-finder.rb
|
230
|
+
- test/util/test_procwrapper.rb
|
231
|
+
- test/util/test_observable.rb
|
232
|
+
- test/test-diff.rb
|
233
|
+
- test/ui/test_testrunmediator.rb
|
215
234
|
- test/fixtures/plus.csv
|
216
235
|
- test/test-fault-location-detector.rb
|
217
|
-
- test/test-code-snippet.rb
|
218
|
-
- test/test_error.rb
|
219
|
-
- test/test-diff.rb
|
220
236
|
- test/test-notification.rb
|
221
|
-
- test/
|
237
|
+
- test/test_testsuite.rb
|
238
|
+
- test/test_testresult.rb
|
222
239
|
- test/test-omission.rb
|
223
240
|
- test/test-color.rb
|
241
|
+
- test/test_error.rb
|
242
|
+
- test/test-data.rb
|
243
|
+
- test/test-pending.rb
|
244
|
+
- test/test-attribute-matcher.rb
|
245
|
+
- test/collector/test_objectspace.rb
|
246
|
+
- test/collector/test-load.rb
|
247
|
+
- test/collector/test-descendant.rb
|
248
|
+
- test/collector/test_dir.rb
|
224
249
|
has_rdoc:
|