Sha256: cb032282b99ae00649701bb14b7cc8bccbdf5061b8d81303604a771b3ac21e54
Contents?: true
Size: 476 Bytes
Versions: 82
Compression:
Stored size: 476 Bytes
Contents
module Rcov class FailureReport < TextSummary # :nodoc: def execute puts summary coverage = code_coverage * 100 if coverage < @failure_threshold puts "You failed to satisfy the coverage theshold of #{@failure_threshold}%" exit(1) end if (coverage - @failure_threshold) > 3 puts "Your coverage has significantly increased over your threshold of #{@failure_threshold}. Please increase it." end end end end
Version data entries
82 entries across 55 versions & 7 rubygems