simplecov: Even shorter command_names
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
faf505e935
commit
2986c7d736
@ -8,7 +8,7 @@ SimpleCov.enable_for_subprocesses true
|
||||
SimpleCov.start do
|
||||
coverage_dir File.expand_path("../test/coverage", File.realpath(__FILE__))
|
||||
root File.expand_path("..", File.realpath(__FILE__))
|
||||
command_name "Homebrew/brew"
|
||||
command_name "brew"
|
||||
|
||||
# enables branch coverage as well as, the default, line coverage
|
||||
enable_coverage :branch
|
||||
@ -30,7 +30,7 @@ SimpleCov.start do
|
||||
|
||||
if ENV["HOMEBREW_INTEGRATION_TEST"]
|
||||
# This needs a unique name so it won't be overwritten
|
||||
command_name "Homebrew/brew integration tests (#{ENV.fetch('TEST_ENV_NUMBER', $PROCESS_ID)})"
|
||||
command_name "i#{ENV.fetch('TEST_ENV_NUMBER', $PROCESS_ID)}"
|
||||
|
||||
# be quiet, the parent process will be in charge of output and checking coverage totals
|
||||
SimpleCov.print_error_status = false
|
||||
@ -51,7 +51,7 @@ SimpleCov.start do
|
||||
raise if $ERROR_INFO.is_a?(SystemExit)
|
||||
end
|
||||
else
|
||||
command_name "Homebrew/brew (#{ENV.fetch('TEST_ENV_NUMBER', $PROCESS_ID)})"
|
||||
command_name "b#{ENV.fetch('TEST_ENV_NUMBER', $PROCESS_ID)}"
|
||||
|
||||
# Not using this during integration tests makes the tests 4x times faster
|
||||
# without changing the coverage.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user