Sha256: a15cced1ec63a20de3e72a66a2c89b4140d468962ad0dbe522222ae8f8924a60
Contents?: true
Size: 449 Bytes
Versions: 11
Compression:
Stored size: 449 Bytes
Contents
desc 'code coverage' task :rcov => :clean do specs = Dir['spec/ffi-tk/**/*.rb'] # we ignore adapter as this has extensive specs in rack already. ignore = %w[ gem bacon ] 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
11 entries across 11 versions & 2 rubygems