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