2014-04-14 15:58:59 +03:00
|
|
|
require 'rubygems'
|
|
|
|
require 'bundler'
|
|
|
|
begin
|
2017-04-14 14:38:23 +03:00
|
|
|
Bundler.setup(:default, :test)
|
2014-04-14 15:58:59 +03:00
|
|
|
rescue Bundler::BundlerError => e
|
|
|
|
$stderr.puts e.message
|
|
|
|
$stderr.puts "Run `bundle install` to install missing gems"
|
|
|
|
exit e.status_code
|
|
|
|
end
|
2015-07-18 13:06:42 +03:00
|
|
|
if ENV['CODECLIMATE_REPO_TOKEN']
|
2016-12-06 15:22:22 +02:00
|
|
|
require 'simplecov'
|
2016-12-30 11:59:38 +02:00
|
|
|
SimpleCov.start { add_filter "/test/" }
|
2015-07-18 13:06:42 +03:00
|
|
|
end
|
|
|
|
|
2017-01-04 21:31:03 +02:00
|
|
|
require "minitest/color"
|
2014-04-14 21:52:16 +03:00
|
|
|
require "minitest/autorun"
|
2019-08-19 15:23:57 +03:00
|
|
|
require "minitest/fail_fast" unless ENV["TEST_ALL"]
|
2018-09-02 13:58:42 +03:00
|
|
|
require 'minitest/profile'
|
2014-04-14 15:58:59 +03:00
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2014-04-14 21:52:16 +03:00
|
|
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
|
2014-04-14 15:58:59 +03:00
|
|
|
|
2019-09-29 22:37:28 +03:00
|
|
|
#require "minitest/reporters"
|
|
|
|
#Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
|
|
|
|
|
2017-01-14 20:05:58 +02:00
|
|
|
require 'rubyx'
|
2015-06-01 17:31:35 +03:00
|
|
|
|
2019-09-13 22:06:18 +03:00
|
|
|
require_relative "support/options"
|
|
|
|
require_relative "support/parfait_test"
|
|
|
|
require_relative "support/fake_int"
|
|
|
|
require_relative "support/fake_compiler"
|
|
|
|
require_relative "support/risc_assert"
|
|
|
|
require_relative "support/risc_interpreter"
|