Sha256: d576298f6d79da767ebccd056abf9fa892e2ca83fd53ca1c94aae227d229a854
Contents?: true
Size: 538 Bytes
Versions: 64
Compression:
Stored size: 538 Bytes
Contents
desc 'code coverage' task :rcov => :clean do specs = PROJECT_SPECS ignore = %w[ gem rack bacon innate hpricot nagoro/lib/nagoro ] if RUBY_VERSION >= '1.8.7' ignore << 'begin_with' << 'end_with' end if RUBY_VERSION < '1.9' ignore << 'fiber' end ignored = ignore.join(',') cmd = "rcov --aggregate coverage.data --sort coverage -t --%s -x '#{ignored}' %s" while spec = specs.shift puts '', "Gather coverage for #{spec} ..." html = specs.empty? ? 'html' : 'no-html' sh(cmd % [html, spec]) end end
Version data entries
64 entries across 62 versions & 15 rubygems