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