Skip to content
Snippets Groups Projects
Commit c6983aad authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

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.
parent 45bfd2b9
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,11 @@ SimpleCov.start do ...@@ -5,13 +5,11 @@ SimpleCov.start do
minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"] minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"]
coverage_dir File.expand_path("#{tests_path}/coverage") 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/compat/" add_filter "/Homebrew/test/"
add_filter "Homebrew/test/" add_filter "/Homebrew/vendor/"
add_filter "Homebrew/vendor/"
add_filter "Taps/"
if ENV["HOMEBREW_INTEGRATION_TEST"] if ENV["HOMEBREW_INTEGRATION_TEST"]
command_name ENV["HOMEBREW_INTEGRATION_TEST"] command_name ENV["HOMEBREW_INTEGRATION_TEST"]
...@@ -31,7 +29,7 @@ SimpleCov.start do ...@@ -31,7 +29,7 @@ SimpleCov.start do
project_name "Homebrew" project_name "Homebrew"
add_group "Commands", %w[/Homebrew/cmd/ /Homebrew/dev-cmd/] add_group "Commands", %w[/Homebrew/cmd/ /Homebrew/dev-cmd/]
add_group "Extensions", "/Homebrew/extend/" 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 "Requirements", "/Homebrew/requirements/"
add_group "Scripts", %w[ add_group "Scripts", %w[
/Homebrew/brew.rb /Homebrew/brew.rb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment