Set the SimpleCov command name with Bashcov
masterBashcov respects most .simplecov settings, but it overrides SimpleCov.command_name to ensure coverage results from different test suites do not overwrite each other.
By default, Bashcov generates a command name based on the executing Bash script and its arguments (e.g., running bashcov -- ./test_suite.sh --flags results in a command name of "/bin/bash ./test_suite.sh --flags").
If your test suite runs the exact same bashcov command multiple times, the generated names will be identical, causing SimpleCov to overwrite results. To prevent this, you can manually specify a unique command name using either the --command-name CLI flag or the BASHCOV_COMMAND_NAME environment variable.
# Using the CLI flag
bashcov --command-name "unique_test_run_1" -- ./test_suite.sh
# Using an environment variable
BASHCOV_COMMAND_NAME="unique_test_run_2" bashcov -- ./test_suite.sh