diff options
| author | Markus Reiter | 2016-12-09 17:27:31 +0100 |
|---|---|---|
| committer | Markus Reiter | 2017-02-03 17:27:36 +0100 |
| commit | e40c63f77c83254970c0e98f69ea76685536a905 (patch) | |
| tree | 1e62e9feec4bd812367edb09662bc09d02a29b79 /Library/Homebrew/test/testing_env.rb | |
| parent | 01c13720749d9c4d0050a5bca943543d5bd8a9de (diff) | |
| download | brew-e40c63f77c83254970c0e98f69ea76685536a905.tar.bz2 | |
Use array of constants to set up test directories.
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
| -rw-r--r-- | Library/Homebrew/test/testing_env.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index e2ba2e4e4..b989ca817 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -1,16 +1,14 @@ -$:.unshift File.expand_path("../..", __FILE__) -$:.unshift File.expand_path("../support/lib", __FILE__) +$LOAD_PATH.unshift(File.expand_path("#{ENV["HOMEBREW_LIBRARY"]}/Homebrew")) +$LOAD_PATH.unshift(File.expand_path("#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/test/support/lib")) require "simplecov" if ENV["HOMEBREW_TESTS_COVERAGE"] require "global" require "formulary" -# 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 } - begin require "minitest/autorun" + require "minitest/reporters" + Minitest::Reporters.use! Minitest::Reporters::DefaultReporter.new(color: true) require "parallel_tests/test/runtime_logger" require "mocha/setup" rescue LoadError |
