tests: no --only minimum coverage requirement. (#299)

This will almost certainly fail every time so let's disable this error.
This commit is contained in:
Mike McQuaid 2016-05-30 10:49:03 +01:00
parent 6f37394e53
commit 0551471536
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ module Homebrew
args = [] args = []
args << "--trace" if ARGV.include? "--trace" args << "--trace" if ARGV.include? "--trace"
if ARGV.value("only") if ARGV.value("only")
ENV["HOMEBREW_TESTS_ONLY"] = "1"
test_name, test_method = ARGV.value("only").split("/", 2) test_name, test_method = ARGV.value("only").split("/", 2)
args << "TEST=test_#{test_name}.rb" args << "TEST=test_#{test_name}.rb"
args << "TESTOPTS=--name=test_#{test_method}" if test_method args << "TESTOPTS=--name=test_#{test_method}" if test_method

View File

@ -3,7 +3,7 @@
SimpleCov.start do SimpleCov.start do
tests_path = File.dirname(__FILE__) tests_path = File.dirname(__FILE__)
minimum_coverage 40 minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"]
coverage_dir File.expand_path("#{tests_path}/coverage") coverage_dir File.expand_path("#{tests_path}/coverage")
root File.expand_path("#{tests_path}/../../") root File.expand_path("#{tests_path}/../../")