From 44a8ebdc7e3714f6f12dd1016ebf752d4a0b270c Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Sun, 19 Jul 2015 10:29:40 +0200 Subject: 'brew tests' optional coverage measure added Closes Homebrew/homebrew#41890. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/tests.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library/Homebrew/cmd') 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") -- cgit v1.2.3