diff options
| author | Martin Afanasjew | 2016-02-06 22:45:37 +0100 |
|---|---|---|
| committer | Martin Afanasjew | 2016-02-18 21:54:14 +0100 |
| commit | f8a86e596204d7201a2dd9416ada658545f1c30b (patch) | |
| tree | 9b36dbe9acc15a7accb39ec286ad31505572e1bb | |
| parent | 5aa2712694a418e5f4eacacd2752e68799d312cf (diff) | |
| download | brew-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>
| -rw-r--r-- | Library/Homebrew/test/.simplecov | 13 |
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"] |
