require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do project_name 'concurrent-ruby' add_filter '/md/' add_filter '/pkg/' add_filter '/spec/' add_filter '/tasks/' end require 'eventmachine' require 'concurrent' require 'concurrent/functions' # import all the support files Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require File.expand_path(f) } RSpec.configure do |config| config.order = 'random' config.before(:suite) do end config.before(:each) do end config.after(:each) do Thread.list.each do |thread| thread.kill unless thread == Thread.current end end end