diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb index e15ed36a83..5310cf1866 100644 --- a/Library/Homebrew/cmd/tests.rb +++ b/Library/Homebrew/cmd/tests.rb @@ -30,6 +30,7 @@ module Homebrew args = [] args << "--trace" if ARGV.include? "--trace" if ARGV.value("only") + ENV["HOMEBREW_TESTS_ONLY"] = "1" test_name, test_method = ARGV.value("only").split("/", 2) args << "TEST=test_#{test_name}.rb" args << "TESTOPTS=--name=test_#{test_method}" if test_method diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index b6c759979e..f4af3eeba8 100644 --- a/Library/Homebrew/test/.simplecov +++ b/Library/Homebrew/test/.simplecov @@ -3,7 +3,7 @@ SimpleCov.start do tests_path = File.dirname(__FILE__) - minimum_coverage 40 + minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"] coverage_dir File.expand_path("#{tests_path}/coverage") root File.expand_path("#{tests_path}/../../")