Class: SimpleCov::ExitCodes::MaximumOverallCoverageCheck

Inherits:
Check
  • Object
show all
Defined in:
lib/simplecov/exit_codes/maximum_overall_coverage_check.rb

Overview

Fails when the overall (project-wide) coverage for any criterion is above the configured maximum. Pair with SimpleCov::ExitCodes::MinimumOverallCoverageCheck (or use SimpleCov.expected_coverage) to pin coverage to an exact value and surface unexpected increases instead of silently absorbing them.

Instance Method Summary collapse

Methods inherited from Check

#failing?, #initialize, #report

Constructor Details

This class inherits a constructor from SimpleCov::ExitCodes::Check

Instance Method Details

#exit_codeObject



11
12
13
# File 'lib/simplecov/exit_codes/maximum_overall_coverage_check.rb', line 11

def exit_code
  SimpleCov::ExitCodes::MAXIMUM_COVERAGE
end