Merge pull request #3545 from MikeMcQuaid/more-coverage-filters
.simplecov: filter more filters/folders.
This commit is contained in:
commit
4df12861a0
@ -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/}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user