aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2017-12-08 20:42:48 +0000
committerGitHub2017-12-08 20:42:48 +0000
commit4df12861a08f48eb0e569124f0d641f83d439db4 (patch)
treeed144b80c9307cb1db4be5a12c49e6925a15fae4 /Library/Homebrew
parent5055c31a867aa256cdec6b22f75b552a10ee7a99 (diff)
parent301bb1d5dd55415f154271fd8c9fc520b6974c85 (diff)
downloadbrew-4df12861a08f48eb0e569124f0d641f83d439db4.tar.bz2
Merge pull request #3545 from MikeMcQuaid/more-coverage-filters
.simplecov: filter more filters/folders.
Diffstat (limited to 'Library/Homebrew')
-rwxr-xr-xLibrary/Homebrew/.simplecov11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/.simplecov b/Library/Homebrew/.simplecov
index e0d6d7601..2fa803466 100755
--- a/Library/Homebrew/.simplecov
+++ b/Library/Homebrew/.simplecov
@@ -38,11 +38,22 @@ SimpleCov.start do
track_files "#{SimpleCov.root}/{#{subdirs},*.rb}"
end
+ add_filter %r{^/build.rb$}
+ add_filter %r{^/config.rb$}
+ add_filter %r{^/constants.rb$}
+ add_filter %r{^/postinstall.rb$}
+ add_filter %r{^/test.rb$}
add_filter %r{^/compat/}
add_filter %r{^/dev-cmd/tests.rb$}
add_filter %r{^/test/}
add_filter %r{^/vendor/}
+ require "rbconfig"
+ add_filter %r{^/os/mac/} unless RbConfig::CONFIG["host_os"].include?("darwin")
+ unless RbConfig::CONFIG["host_os"].include?("linux")
+ add_filter %r{^/os/linux/}
+ end
+
# Add groups and the proper project name to the output.
project_name "Homebrew"
add_group "Cask", %r{^/cask/}