2015-04-28 22:37:26 -04:00
|
|
|
$:.unshift File.expand_path("../..", __FILE__)
|
2016-10-24 22:53:25 +02:00
|
|
|
$:.unshift File.expand_path("../support/lib", __FILE__)
|
2010-02-14 21:23:38 -08:00
|
|
|
|
2015-07-27 21:50:30 +01:00
|
|
|
require "simplecov" if ENV["HOMEBREW_TESTS_COVERAGE"]
|
2015-04-28 22:37:26 -04:00
|
|
|
require "global"
|
2016-01-08 23:35:58 +01:00
|
|
|
require "formulary"
|
2013-04-01 15:53:42 -05:00
|
|
|
|
|
|
|
# Test environment setup
|
2016-02-26 19:43:49 +08:00
|
|
|
(HOMEBREW_LIBRARY/"Taps/homebrew/homebrew-core/Formula").mkpath
|
2016-07-19 08:23:44 -07:00
|
|
|
%w[cache formula_cache locks cellar logs temp].each { |d| HOMEBREW_PREFIX.parent.join(d).mkpath }
|
2013-01-19 20:45:58 -06:00
|
|
|
|
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
|
2015-07-22 15:37:34 +01:00
|
|
|
abort "Run `bundle install` or install the mocha and minitest gems before running the tests"
|
2012-10-25 22:09:23 -05:00
|
|
|
end
|
2013-05-25 17:19:18 -05:00
|
|
|
|
2016-11-13 21:31:53 +01:00
|
|
|
require "test/support/helper/test_case"
|
2016-11-13 21:35:20 +01:00
|
|
|
require "test/support/helper/integration_command_test_case"
|