aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-07-17 16:27:54 +0200
committerMartin Afanasjew2016-07-19 02:04:40 +0200
commitc6983aade9082091722f7d4bc7024b88fae3f0bc (patch)
treea9294c1402fe0bec526c69a9891a1beb7326f39f /Library
parent45bfd2b94abc6cadfe33db73a6fdb7904ed91e0e (diff)
downloadbrew-c6983aade9082091722f7d4bc7024b88fae3f0bc.tar.bz2
tests: strip Homebrew prefix from coverage report
Make `Library/Homebrew` the new root now that *all* implementation files are in this directory. Update filters/groups accordingly. Note that paths in filters/groups are not anchored at the root and are always matched against the full path. Our rules are effectively anchored because they always include the `/Homebrew/` path component.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/.simplecov12
1 files changed, 5 insertions, 7 deletions
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index b3f87cfdb..19363a01e 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -5,13 +5,11 @@ SimpleCov.start do
minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"]
coverage_dir File.expand_path("#{tests_path}/coverage")
- root File.expand_path("#{tests_path}/../../")
+ root File.expand_path("#{tests_path}/..")
- add_filter "Formula/"
- add_filter "Homebrew/compat/"
- add_filter "Homebrew/test/"
- add_filter "Homebrew/vendor/"
- add_filter "Taps/"
+ add_filter "/Homebrew/compat/"
+ add_filter "/Homebrew/test/"
+ add_filter "/Homebrew/vendor/"
if ENV["HOMEBREW_INTEGRATION_TEST"]
command_name ENV["HOMEBREW_INTEGRATION_TEST"]
@@ -31,7 +29,7 @@ SimpleCov.start do
project_name "Homebrew"
add_group "Commands", %w[/Homebrew/cmd/ /Homebrew/dev-cmd/]
add_group "Extensions", "/Homebrew/extend/"
- add_group "OS", "/Homebrew/os/"
+ add_group "OS", %w[/Homebrew/extend/os/ /Homebrew/os/]
add_group "Requirements", "/Homebrew/requirements/"
add_group "Scripts", %w[
/Homebrew/brew.rb