diff options
| author | Mike McQuaid | 2016-09-01 20:31:40 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-01 20:31:40 +0100 |
| commit | 0dc0bc1617aff8addf9153d4cb7beb898a5fba3b (patch) | |
| tree | 22e5a372a6d4fe7c57c2c528231414cd528938a8 /Library/Homebrew/test | |
| parent | 0f84fe71681ac74e3f41510f960bbcb40d5fa03e (diff) | |
| parent | c1621f7f54fe90dd3fb6cc42b127814a59067d5d (diff) | |
| download | brew-0dc0bc1617aff8addf9153d4cb7beb898a5fba3b.tar.bz2 | |
Merge pull request #773 from reitermarkus/report-cask-coverage
Also report Cask coverage.
Diffstat (limited to 'Library/Homebrew/test')
| -rwxr-xr-x[-rw-r--r--] | Library/Homebrew/test/.simplecov | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Library/Homebrew/test/.simplecov b/Library/Homebrew/test/.simplecov index 3cbd53943..7b057e878 100644..100755 --- a/Library/Homebrew/test/.simplecov +++ b/Library/Homebrew/test/.simplecov @@ -1,18 +1,16 @@ -# vim: filetype=ruby +#!/usr/bin/env ruby SimpleCov.start do - tests_path = File.dirname(__FILE__) - - minimum_coverage 40 unless ENV["HOMEBREW_TESTS_ONLY"] - coverage_dir File.expand_path("#{tests_path}/coverage") - root File.expand_path("#{tests_path}/..") + coverage_dir File.expand_path("../coverage", File.realpath(__FILE__)) + root File.expand_path("../..", File.realpath(__FILE__)) # We manage the result cache ourselves and the default of 10 minutes can be # too low (particularly on Travis CI), causing results from some integration # tests to be dropped. This causes random fluctuations in test coverage. merge_timeout 86400 - add_filter "/Homebrew/cask/" + add_filter "/Homebrew/cask/spec/" + add_filter "/Homebrew/cask/test/" add_filter "/Homebrew/compat/" add_filter "/Homebrew/test/" add_filter "/Homebrew/vendor/" @@ -33,6 +31,7 @@ SimpleCov.start do # Add groups and the proper project name to the output. project_name "Homebrew" + add_group "Cask", "/Homebrew/cask/" add_group "Commands", %w[/Homebrew/cmd/ /Homebrew/dev-cmd/] add_group "Extensions", "/Homebrew/extend/" add_group "OS", %w[/Homebrew/extend/os/ /Homebrew/os/] @@ -44,10 +43,3 @@ SimpleCov.start do /Homebrew/test.rb ] end - -# Don't use Coveralls outside of CI, as it will override SimpleCov's default -# formatter causing the `index.html` not to be written once all tests finish. -if RUBY_VERSION.split(".").first.to_i >= 2 && !ENV["HOMEBREW_INTEGRATION_TEST"] && ENV["CI"] - require "coveralls" - Coveralls.wear! -end |
