aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMartin Afanasjew2016-02-06 22:45:37 +0100
committerMartin Afanasjew2016-02-18 21:54:14 +0100
commitf8a86e596204d7201a2dd9416ada658545f1c30b (patch)
tree9b36dbe9acc15a7accb39ec286ad31505572e1bb /Library/Homebrew
parent5aa2712694a418e5f4eacacd2752e68799d312cf (diff)
downloadbrew-f8a86e596204d7201a2dd9416ada658545f1c30b.tar.bz2
tests: add groups and project name to coverage
Groups make it easier to get an overview of the coverage without having to scan through a single very long list of files. They also display a possibly helpful per-group coverage. The project name is normally derived from the `root` directory which happens to be `Library` in our case, thus make it explicitly `Homebrew`. Closes Homebrew/homebrew#49303. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/.simplecov13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov
index b42d29f8f..b6c759979 100644
--- a/Library/Homebrew/test/.simplecov
+++ b/Library/Homebrew/test/.simplecov
@@ -18,6 +18,19 @@ SimpleCov.start do
unless ENV["HOMEBREW_INTEGRATION_TEST"]
track_files "#{SimpleCov.root}/**/*.rb"
end
+
+ # Add groups and the proper project name to the output.
+ project_name "Homebrew"
+ add_group "Commands", %w[/Homebrew/cmd/ /Homebrew/dev-cmd/]
+ add_group "Extensions", "/Homebrew/extend/"
+ add_group "OS", "/Homebrew/os/"
+ add_group "Requirements", "/Homebrew/requirements/"
+ add_group "Scripts", %w[
+ /brew.rb
+ /Homebrew/build.rb
+ /Homebrew/postinstall.rb
+ /Homebrew/test.rb
+ ]
end
if ENV["HOMEBREW_INTEGRATION_TEST"]