aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-05-30 10:49:03 +0100
committerMike McQuaid2016-05-30 10:49:03 +0100
commit055147153654b99798a7adb55b4128344919c3e2 (patch)
treefdcdb59c349a67447d6415e002dad6b28eb4d426 /Library
parent6f37394e535e1dd51e670eba31b11d541cc225e4 (diff)
downloadbrew-055147153654b99798a7adb55b4128344919c3e2.tar.bz2
tests: no --only minimum coverage requirement. (#299)
This will almost certainly fail every time so let's disable this error.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/tests.rb1
-rw-r--r--Library/Homebrew/test/.simplecov2
2 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
index e15ed36a8..5310cf186 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 b6c759979..f4af3eeba 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}/../../")