Menu

[r2634]: / trunk / src / tests / testall.rb  Maximize  Restore  History

Download this file

30 lines (26 with data), 572 Bytes

 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
27
28
29
begin
# use gems test-unit2 if enable
require 'rubygems'
gem('test-unit')
rescue LoadError
end
require 'test/unit'
if ENV['COVERAGE']
# coverage for ruby
require 'simplecov'
SimpleCov.configure do
project_name 'RubyCocoa'
root '../'
coverage_dir 'coverage/ruby'
add_group 'Framework', 'framework'
add_group 'Tests', 'tests'
add_group 'Lib', 'lib'
end
SimpleCov.start
end
`ls tc_*.rb`.each_line do |testcase|
testcase.chop!
$stderr.puts testcase if $VERBOSE
require(File.join('.', testcase ))
end
Test::Unit::AutoRunner.run