aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-07-19 10:29:40 +0200
committerBaptiste Fontaine2015-07-20 20:44:12 +0200
commit44a8ebdc7e3714f6f12dd1016ebf752d4a0b270c (patch)
treec77dd6c98d318280e1f20069551f3200dc32f8a9 /Library/Homebrew/cmd
parent9877b1e7b8e62e8285b459cabe70556c37abfe75 (diff)
downloadbrew-44a8ebdc7e3714f6f12dd1016ebf752d4a0b270c.tar.bz2
'brew tests' optional coverage measure added
Closes Homebrew/homebrew#41890. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/tests.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb
index a74980fbd..a686a7f8c 100644
--- a/Library/Homebrew/cmd/tests.rb
+++ b/Library/Homebrew/cmd/tests.rb
@@ -2,6 +2,7 @@ module Homebrew
def tests
(HOMEBREW_LIBRARY/"Homebrew/test").cd do
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
+ ENV["HOMEBREW_TESTS_COVERAGE"] = "1" if ARGV.flag? "--coverage"
Homebrew.install_gem_setup_path! "bundler"
quiet_system("bundle", "check") || \
system("bundle", "install", "--path", "vendor/bundle")