Sha256: 95bb0f1352b53236e00b474f16d26e33a7b3f0c70c4bb72c37a5e71fcdcb0028
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
MINIMUM_COVERAGE = 68 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 unless percent >= MINIMUM_COVERAGE puts "Coverage must be above #{MINIMUM_COVERAGE}%. It is #{"%.2f" % percent}%" Kernel.exit(1) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timely-0.1.0 | spec/support/coverage.rb |