Sha256: 227ce4e5e7babfc620c0cfdf199669a59516fb4d2009632c941b33e308cc0548
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
unless ENV['COVERAGE'] == 'off' COVERAGE_THRESHOLD = 96 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geokit-1.13.1 | test/coverage_loader.rb |
geokit-1.13.0 | test/coverage_loader.rb |
geokit-1.12.0 | test/coverage_loader.rb |
geokit-1.11.0 | test/coverage_loader.rb |