Sha256: 3b7539bbb8a9da512665d5ddc136e508cd346b3c80ee77df7baa77e3cd091b41

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

desc 'code coverage'
task :rcov => :clean do
  specs = PROJECT_SPECS

  # we ignore adapter as this has extensive specs in rack already.
  ignore = %w[ gem rack bacon innate/adapter\.rb ]
  ignore << 'fiber\.rb' if RUBY_VERSION < '1.9'

  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

2 entries across 2 versions & 1 rubygems

Version Path
ver-2009.11.28 tasks/rcov.rake
ver-2009.10.14 tasks/rcov.rake