From f8a86e596204d7201a2dd9416ada658545f1c30b Mon Sep 17 00:00:00 2001 From: Martin Afanasjew Date: Sat, 6 Feb 2016 22:45:37 +0100 Subject: 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 --- Library/Homebrew/test/.simplecov | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Library/Homebrew') 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"] -- cgit v1.2.3