Sha256: 644695d79c2e8a4b9dd249143289fe4a3c56730ab7b8c9939c613b34780384b3
Contents?: true
Size: 544 Bytes
Versions: 42
Compression:
Stored size: 544 Bytes
Contents
require 'fox16' require 'test/unit' class TS_All def TS_All.suite suite = Test::Unit::TestSuite.new Object.constants.sort.each do |k| next if /^TC_/ !~ k constant = Object.const_get(k) if constant.kind_of?(Class) # puts "adding tests for #{constant.to_s}" suite << constant.suite end end suite end end if __FILE__ == $0 require 'test/unit/ui/console/testrunner' Dir.glob("TC_*.rb").each do |testcase| require "#{testcase}" end Test::Unit::UI::Console::TestRunner.run(TS_All) end
Version data entries
42 entries across 42 versions & 2 rubygems