From 2986c7d736c7bfe31862a171ead73ee5b295c076 Mon Sep 17 00:00:00 2001 From: Issy Long Date: Fri, 17 Feb 2023 13:36:19 +0000 Subject: [PATCH] simplecov: Even shorter `command_name`s Co-authored-by: Mike McQuaid --- Library/Homebrew/.simplecov | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/.simplecov b/Library/Homebrew/.simplecov index b72db55c72..5d2c888930 100755 --- a/Library/Homebrew/.simplecov +++ b/Library/Homebrew/.simplecov @@ -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.