Module: SimpleCov::ExitCodes
Overview
Exit statuses ::SimpleCov sets when coverage checks fail, and the output
helper the enforcement machinery reports through.
Constant Summary
-
EXCEPTION =
# File 'lib/simplecov/exit_codes.rb', line 81 -
MAXIMUM_COVERAGE =
# File 'lib/simplecov/exit_codes.rb', line 114 -
MAXIMUM_COVERAGE_DROP =
# File 'lib/simplecov/exit_codes.rb', line 103 -
MINIMUM_COVERAGE =
# File 'lib/simplecov/exit_codes.rb', line 92 -
SUCCESS =
# File 'lib/simplecov/exit_codes.rb', line 70
Class Method Summary
-
.print_error(message)
Threshold-violation reports and exit-status notices are the output of the enforcement feature, not Ruby warnings: routing them through
Kernel#warnmade-W0swallow the explanation for a failing exit code, letWarning.warnhooks (warning trackers, raise-on-warning test setups) intercept them mid-at_exit, and fed colorized text to warning logs.
Class Method Details
.print_error(message)
Threshold-violation reports and exit-status notices are the output of
the enforcement feature, not Ruby warnings: routing them through
Kernel#warn made -W0 swallow the explanation for a failing exit
code, let Warning.warn hooks (warning trackers, raise-on-warning
test setups) intercept them mid-at_exit, and fed colorized text to
warning logs. print_errors false remains the intended opt-out.
# File 'lib/simplecov/exit_codes.rb', line 19
def self.print_error() $stderr.puts # rubocop:disable Style/StderrPuts end