require File.expand_path '../test_helper.rb', __FILE__ class TestMabmapper < Minitest::Test def setup @engine = load_engine! end end tests_to_run = ENV['TESTS'].split unless ENV['TESTS'].nil? # require and include all mabmapper test modules Dir.glob(File.expand_path '../mabmapper/test_*.rb', __FILE__).each do |filename| if tests_to_run.nil? || tests_to_run.any? { |name_of_test| "test_#{name_of_test}" == File.basename(filename, '.rb') } require filename TestMabmapper.instance_eval do include File.basename(filename, '.rb').camelize.constantize end end end