Module: SimpleCov::ExitCodes

Defined in:
lib/simplecov/exit_codes.rb,
lib/simplecov/exit_codes/exit_code_handling.rb,
lib/simplecov/exit_codes/maximum_coverage_drop_check.rb,
lib/simplecov/exit_codes/maximum_overall_coverage_check.rb,
lib/simplecov/exit_codes/minimum_coverage_by_file_check.rb,
lib/simplecov/exit_codes/minimum_overall_coverage_check.rb,
lib/simplecov/exit_codes/minimum_coverage_by_group_check.rb,
sig/simplecov.rbs,
sig/simplecov.rbs

Overview

Exit codes SimpleCov uses when a coverage check fails.

Defined Under Namespace

Modules: ExitCodeHandling, _CoverageLimits Classes: MaximumCoverageDropCheck, MaximumOverallCoverageCheck, MinimumCoverageByFileCheck, MinimumCoverageByGroupCheck, MinimumOverallCoverageCheck

Constant Summary collapse

SUCCESS =

Returns:

  • (0)
0
EXCEPTION =

Returns:

  • (1)
1
MINIMUM_COVERAGE =

Returns:

  • (2)
2
MAXIMUM_COVERAGE_DROP =

Returns:

  • (3)
3
MAXIMUM_COVERAGE =

Returns:

  • (4)
4

Class Method Summary collapse

Class Method Details

This method returns an undefined value.

Threshold-violation reports and exit-status notices: enforcement output on stderr, deliberately not routed through Kernel#warn.

Parameters:

  • message (String)


19
20
21
# File 'lib/simplecov/exit_codes.rb', line 19

def self.print_error(message)
  $stderr.puts message # rubocop:disable Style/StderrPuts
end