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