source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/runit/testsuite.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 529 bytes
Line 
1# Author:: Nathaniel Talbott.
2# Copyright:: Copyright (c) 2000-2002 Nathaniel Talbott. All rights reserved.
3# License:: Ruby license.
4
5require 'test/unit/testsuite'
6
7module 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
26end
Note: See TracBrowser for help on using the repository browser.