lib/cli_coverage.rb in imap-backup-13.1.0 vs lib/cli_coverage.rb in imap-backup-13.2.0

- old
+ new

@@ -1,12 +1,11 @@ class CliCoverage def self.conditionally_activate return if !ENV.key?("COVERAGE") - require "simplecov" - # Collect coverage separately - SimpleCov.command_name "#{ENV.fetch('COVERAGE')} #{ARGV.join(' ')} coverage" + ENV["SIMPLECOV_COMMAND_NAME"] = "#{ENV.fetch('COVERAGE')} #{ARGV.join(' ')} coverage" + require "simplecov" # Silence output SimpleCov.formatter = SimpleCov::Formatter::SimpleFormatter SimpleCov.print_error_status = false