Sha256: 7ff1481b8bea477f1c609b3dd4f4a3c16fcbaaf9d7259c71274078fcde3880ec
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
MINIMUM_COVERAGE = 81.1 unless ENV['COVERAGE'] == 'off' require 'simplecov' require 'simplecov-rcov' require 'coveralls' Coveralls.wear! SimpleCov.formatters = [ SimpleCov::Formatter::RcovFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start do add_filter '/vendor/' add_filter '/spec/' add_group 'lib', 'lib' end SimpleCov.at_exit do SimpleCov.result.format! percent = SimpleCov.result.covered_percent puts "Coverage is #{"%.2f" % percent}%" unless percent >= MINIMUM_COVERAGE puts "Coverage must be above #{MINIMUM_COVERAGE}%" Kernel.exit(1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_core_extensions-0.2.0 | spec/support/coverage_loader.rb |