Sha256: 0a2585a78709d5a7e3284f2f9493a2b26b531a83183bab7fddd5da4a7a06a6f9
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
desc 'code coverage' task :rcov 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2011.07.25 | tasks/rcov.rake |