Sha256: 232296208d5d4a008e10944bab6db8d27ce77e48740a8e61a836fdf340613b44

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

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

  ignore = %w[ gem ffi-tk ]

  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-2010.08 tasks/rcov.rake
ver-2010.02 tasks/rcov.rake