brew/Library/Homebrew/test/testing_env.rb

22 lines
707 B
Ruby
Raw Normal View History

$:.unshift File.expand_path("../..", __FILE__)
$:.unshift File.expand_path("../support/lib", __FILE__)
2010-02-14 21:23:38 -08:00
require "simplecov" if ENV["HOMEBREW_TESTS_COVERAGE"]
require "global"
require "formulary"
2013-04-01 15:53:42 -05:00
# Test environment setup
(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-core/Formula").mkpath
%w[cache formula_cache locks cellar logs temp].each { |d| HOMEBREW_PREFIX.parent.join(d).mkpath }
2013-01-19 20:45:56 -06:00
begin
2014-06-10 22:43:47 -05:00
require "minitest/autorun"
2016-09-20 13:16:11 +01:00
require "parallel_tests/test/runtime_logger"
2014-06-10 22:43:47 -05:00
require "mocha/setup"
2013-01-19 20:45:56 -06:00
rescue LoadError
abort "Run `bundle install` or install the mocha and minitest gems before running the tests"
end
2013-05-25 17:19:18 -05:00
require "test/support/helper/test_case"
require "test/support/helper/integration_command_test_case"