blob: 63baf65707d18df609f7db4c904618b731e9b111 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Author:: Nathaniel Talbott.
# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
# License:: Ruby license.
require 'test/unit/testsuite'
module RUNIT
class TestSuite < Test::Unit::TestSuite
def add_test(*args)
add(*args)
end
def add(*args)
self.<<(*args)
end
def count_test_cases
return size
end
def run(result, &progress_block)
progress_block = proc {} unless (block_given?)
super(result, &progress_block)
end
end
end
|