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

Version Path
gigpark-rcov-0.8.6 lib/rcov/formatters/failure_report.rb
hooligan495-rcov-0.9.1-java lib/rcov/formatters/failure_report.rb
relevance-rcov-0.8.5.2 lib/rcov/formatters/failure_report.rb
relevance-rcov-0.8.6 lib/rcov/formatters/failure_report.rb
relevance-rcov-0.9.0 lib/rcov/formatters/failure_report.rb
relevance-rcov-0.9.1.1 lib/rcov/formatters/failure_report.rb
relevance-rcov-0.9.2.1 lib/rcov/formatters/failure_report.rb
relevance-rcov-0.9.3-java lib/rcov/formatters/failure_report.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.5 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.4 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.3 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.2 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/rcov-0.9.9/lib/rcov/formatters/failure_report.rb