Sha256: c6c67376a2e21201256d426779deb9e6fa689d229be642bbda2c77640145a250
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relevance-rcov-0.8.5.1 | lib/rcov/formatters/failure_report.rb |
relevance-rcov-0.8.5 | lib/rcov/formatters/failure_report.rb |