Sha256: ea757c528c24fb5c94e3e91fc2467119a88305f3a0d23384da116f1459e15fe3

Contents?: true

Size: 567 Bytes

Versions: 41

Compression:

Stored size: 567 Bytes

Contents

desc 'code coverage'
task :rcov => :clean do
  specs = Dir['spec/innate/**/*.rb']
  specs -= Dir['spec/innate/cache/common.rb']

  # 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

41 entries across 41 versions & 8 rubygems

Version Path
innate-2023.01.06 tasks/rcov.rake
innate-2015.10.28 tasks/rcov.rake
manveru-innate-2009.04.01 tasks/rcov.rake
manveru-innate-2009.04.08 tasks/rcov.rake
manveru-innate-2009.04.18 tasks/rcov.rake
manveru-innate-2009.04 tasks/rcov.rake
manveru-innate-2009.05 tasks/rcov.rake
manveru-innate-2009.06.12 tasks/rcov.rake
manveru-innate-2009.06 tasks/rcov.rake
manveru-innate-2009.07 tasks/rcov.rake
manveru-makura-2009.03.28 tasks/rcov.rake
manveru-makura-2009.04.22 tasks/rcov.rake
manveru-nagoro-2009.03.28 tasks/rcov.rake
manveru-nagoro-2009.05 tasks/rcov.rake
manveru-org-2009.03.28 tasks/rcov.rake
rjspotter-innate-2009.06.29 tasks/rcov.rake
rjspotter-innate-2009.06.30 tasks/rcov.rake
rjspotter-innate-2009.06.31 tasks/rcov.rake
nagoro-2013.03 tasks/rcov.rake
innate-2013.02.21 tasks/rcov.rake