Fix coverage reporting.
This commit is contained in:
parent
5cf3838f42
commit
6b85593895
@ -16,7 +16,7 @@ SimpleCov.start do
|
||||
add_filter "/Homebrew/vendor/"
|
||||
|
||||
if ENV["HOMEBREW_INTEGRATION_TEST"]
|
||||
command_name ENV["HOMEBREW_INTEGRATION_TEST"]
|
||||
command_name "#{ENV["HOMEBREW_INTEGRATION_TEST"]} (#{$$})"
|
||||
at_exit do
|
||||
exit_code = $!.nil? ? 0 : $!.status
|
||||
$stdout.reopen("/dev/null")
|
||||
@ -24,6 +24,7 @@ SimpleCov.start do
|
||||
exit! exit_code
|
||||
end
|
||||
else
|
||||
command_name "#{command_name} (#{$$})"
|
||||
# Not using this during integration tests makes the tests 4x times faster
|
||||
# without changing the coverage.
|
||||
track_files "#{SimpleCov.root}/**/*.rb"
|
||||
|
||||
@ -12,6 +12,15 @@ group :development do
|
||||
end
|
||||
|
||||
group :test do
|
||||
# This is SimpleCov v0.12.0 with two fixes merged on top, that finally resolve
|
||||
# all issues with parallel tests, uncovered files, and tracked files. Switch
|
||||
# back to stable as soon as v0.12.1 or v0.13.0 is released. For details, see:
|
||||
# - https://github.com/colszowka/simplecov/pull/513
|
||||
# - https://github.com/colszowka/simplecov/pull/520
|
||||
gem "simplecov", "0.12.0",
|
||||
git: "https://github.com/colszowka/simplecov.git",
|
||||
branch: "master", # commit 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||
require: false
|
||||
gem "codecov", require: false
|
||||
gem "minitest", "5.4.1"
|
||||
gem "minitest-reporters"
|
||||
|
||||
@ -1,3 +1,13 @@
|
||||
GIT
|
||||
remote: https://github.com/colszowka/simplecov.git
|
||||
revision: 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||
branch: master
|
||||
specs:
|
||||
simplecov (0.12.0)
|
||||
docile (~> 1.1.0)
|
||||
json (>= 1.8, < 3)
|
||||
simplecov-html (~> 0.10.0)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
@ -66,10 +76,6 @@ GEM
|
||||
public_suffix (~> 2.0)
|
||||
rubocop (~> 0.41.1)
|
||||
ruby-progressbar (1.8.1)
|
||||
simplecov (0.12.0)
|
||||
docile (~> 1.1.0)
|
||||
json (>= 1.8, < 3)
|
||||
simplecov-html (~> 0.10.0)
|
||||
simplecov-html (0.10.0)
|
||||
slop (3.6.0)
|
||||
unicode-display_width (1.1.0)
|
||||
@ -91,6 +97,7 @@ DEPENDENCIES
|
||||
rspec-its
|
||||
rspec-wait
|
||||
rubocop-cask (~> 0.8.3)
|
||||
simplecov (= 0.12.0)!
|
||||
|
||||
BUNDLED WITH
|
||||
1.12.5
|
||||
1.13.1
|
||||
|
||||
@ -4,7 +4,6 @@ require "rspec/wait"
|
||||
|
||||
if ENV["HOMEBREW_TESTS_COVERAGE"]
|
||||
require "simplecov"
|
||||
SimpleCov.command_name "test:cask:rspec"
|
||||
end
|
||||
|
||||
project_root = Pathname.new(File.expand_path("../..", __FILE__))
|
||||
|
||||
@ -4,7 +4,6 @@ require "pathname"
|
||||
|
||||
if ENV["HOMEBREW_TESTS_COVERAGE"]
|
||||
require "simplecov"
|
||||
SimpleCov.command_name "test:cask:minitest"
|
||||
end
|
||||
|
||||
project_root = Pathname.new(File.expand_path("../..", __FILE__))
|
||||
|
||||
@ -6,13 +6,14 @@ gem "rake", "~> 10.3"
|
||||
gem "parallel_tests", "~> 2.9"
|
||||
|
||||
group :coverage do
|
||||
# This is SimpleCov v0.12.0 with one PR merged on top, that finally resolves
|
||||
# This is SimpleCov v0.12.0 with two fixes merged on top, that finally resolve
|
||||
# all issues with parallel tests, uncovered files, and tracked files. Switch
|
||||
# back to stable as soon as v0.12.1 or v0.13.0 is released. See pull request
|
||||
# <https://github.com/Homebrew/legacy-homebrew/pull/48250> for full details.
|
||||
# back to stable as soon as v0.12.1 or v0.13.0 is released. For details, see:
|
||||
# - https://github.com/colszowka/simplecov/pull/513
|
||||
# - https://github.com/colszowka/simplecov/pull/520
|
||||
gem "simplecov", "0.12.0",
|
||||
git: "https://github.com/colszowka/simplecov.git",
|
||||
branch: "master", # commit 257e26394c464c4ab388631b4eff1aa98c37d3f1
|
||||
branch: "master", # commit 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||
require: false
|
||||
gem "codecov", require: false
|
||||
end
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
GIT
|
||||
remote: https://github.com/colszowka/simplecov.git
|
||||
revision: 257e26394c464c4ab388631b4eff1aa98c37d3f1
|
||||
revision: 83d8031ddde0927f87ef9327200a98583ca18d77
|
||||
branch: master
|
||||
specs:
|
||||
simplecov (0.12.0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user