rubyx/test/helper.rb
Torsten Ruger e94c9ea37b add failfast
tired of waiting for the almost 1000 tests to run through, just to get
an error message
2018-05-29 20:40:02 +03:00

25 lines
631 B
Ruby

require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :test)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
if ENV['CODECLIMATE_REPO_TOKEN']
require 'simplecov'
SimpleCov.start { add_filter "/test/" }
end
require "minitest/color"
require "minitest/autorun"
require "minitest/fail_fast"
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'test'))
require 'rubyx'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }