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

Version Path
Pistos-ramaze-2009.04.08 tasks/rcov.rake
Pistos-ramaze-2009.06.12 tasks/rcov.rake
bougyman-autumn-3.1.1 tasks/rcov.rake
bougyman-autumn-3.1.10 tasks/rcov.rake
bougyman-autumn-3.1.11 tasks/rcov.rake
bougyman-autumn-3.1.3 tasks/rcov.rake
bougyman-autumn-3.1.4 tasks/rcov.rake
bougyman-autumn-3.1.6 tasks/rcov.rake
bougyman-autumn-3.1.7 tasks/rcov.rake
bougyman-autumn-3.1.8 tasks/rcov.rake
bougyman-autumn-3.1.9 tasks/rcov.rake
bougyman-name_parse-0.0.3 tasks/rcov.rake
bougyman-name_parse-0.0.4 tasks/rcov.rake
bougyman-name_parse-0.0.5 tasks/rcov.rake
deathsyn-seedling-0.0.1 lib/templates/core/tasks/rcov.rake
deathsyn-seedling-0.0.1 tasks/rcov.rake
deathsyn-seedling-0.0.5 lib/templates/core/tasks/rcov.rake
manveru-mailit-2009.08 tasks/rcov.rake
manveru-makura-2009.05.27 tasks/rcov.rake
manveru-ramaze-2009.04.01 tasks/rcov.rake