|
#!/usr/bin/env ruby
|
|
require 'test/unit'
|
|
tests = Test::Unit.new {|files|
|
|
if files.empty?
|
|
puts "Usage: testrb [options] tests..."
|
|
exit false
|
|
end
|
|
if files.size == 1
|
|
$0 = File.basename(files[0])
|
|
else
|
|
$0 = files.to_s
|
|
end
|
|
files
|
|
}
|
|
exit tests.run(ARGV) || true
|