1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/test/runner.rb
Nobuyoshi Nakada 7e33f324e1
Get rid of failures about coverage
Run test suites explicitly instead of auto-running, to get rid of
failures when simplecov is not installed but COVERAGE is set.
2019-07-25 20:57:32 +09:00

22 lines
561 B
Ruby

# frozen_string_literal: true
require 'rbconfig'
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require 'test/unit'
require_relative "../lib/profile_test_all" if ENV.key?('RUBY_TEST_ALL_PROFILE')
require_relative "../lib/tracepointchecker"
require_relative "../lib/zombie_hunter"
require_relative "../lib/iseq_loader_checker"
require_relative "../test-coverage.rb" if ENV.key?('COVERAGE')
case $0
when __FILE__
dir = __dir__
when "-e"
# No default directory
else
dir = File.expand_path("..", $0)
end
exit Test::Unit::AutoRunner.run(true, dir)