bin/run_test_suite
#!/usr/bin/env ruby
exit(1) if __FILE__ != $0
require 'bundler/setup'
require 'webmock'
if ENV.has_key?("SLOW")
if ENV.has_key?("CODECLIMATE_REPO_TOKEN")
require "codeclimate-test-reporter"
WebMock.disable_net_connect!(:allow => "codeclimate.com")
CodeClimate::TestReporter.start
end
end
$LOAD_PATH.unshift('lib', 'test')
fast_tests = `find ./test -name *_test.rb -print | xargs grep -l "minitest_helper"`
Dir.glob(fast_tests.split("\n")) { |f| puts f; require f }
exit(0) unless ENV.keys.include?("SLOW")
slow_tests = `find ./test -name *_test.rb -print | xargs grep -L "minitest_helper"`
Dir.glob(slow_tests.split("\n")) { |f| puts f; require f }