Sha256: 14eb8d5650b194e0dc2dabecf77073b1a09f662d771e3c6cbd4a89cda796d534

Contents?: true

Size: 930 Bytes

Versions: 40

Compression:

Stored size: 930 Bytes

Contents

require 'rake'
require 'spec/rake/spectask'

desc 'run specs with rcov'
Spec::Rake::SpecTask.new('rcov') do |t|
  t.spec_files = FileList['spec/**/*_spec.rb']
  t.rcov = true
  t.rcov_dir = File.join('coverage', 'all')
  t.rcov_opts.concat(['--exclude', 'spec', '--sort', 'coverage', '--only-uncovered'])
end

namespace :rcov do
  desc 'run api specs with rcov'
  Spec::Rake::SpecTask.new('api') do |t|
    t.spec_files = FileList['spec/api/*_spec.rb']
    t.rcov = true
    t.rcov_dir = File.join('coverage', 'api')
    t.rcov_opts.concat(['--exclude', 'spec', '--sort', 'coverage', '--only-uncovered'])
  end

  desc 'run integration specs with rcov'
  Spec::Rake::SpecTask.new('integration') do |t|
    t.spec_files = FileList['spec/integration/*_spec.rb']
    t.rcov = true
    t.rcov_dir = File.join('coverage', 'integration')
    t.rcov_opts.concat(['--exclude', 'spec', '--sort', 'coverage', '--only-uncovered'])
  end
end

Version data entries

40 entries across 40 versions & 8 rubygems

Version Path
Chrononaut-sunspot-client-0.9.4 tasks/rcov.rake
UnderpantsGnome-sunspot-0.9.1.1 tasks/rcov.rake
UnderpantsGnome-sunspot-0.9.8.1 tasks/rcov.rake
benjaminkrause-sunspot-0.9.7 tasks/rcov.rake
benjaminkrause-sunspot-0.9.8 tasks/rcov.rake
kristopher-sunspot-0.9.8 tasks/rcov.rake
kuahyeow-sunspot-0.9.7 tasks/rcov.rake
kuahyeow-sunspot-0.9.8 tasks/rcov.rake
outoftime-sunspot-0.0.2 tasks/rcov.rake
outoftime-sunspot-0.7.0 tasks/rcov.rake
outoftime-sunspot-0.7.1 tasks/rcov.rake
outoftime-sunspot-0.7.2 tasks/rcov.rake
outoftime-sunspot-0.7.3 tasks/rcov.rake
outoftime-sunspot-0.8.0 tasks/rcov.rake
outoftime-sunspot-0.8.1 tasks/rcov.rake
outoftime-sunspot-0.8.2 tasks/rcov.rake
outoftime-sunspot-0.8.3 tasks/rcov.rake
outoftime-sunspot-0.8.4 tasks/rcov.rake
outoftime-sunspot-0.8.5 tasks/rcov.rake
outoftime-sunspot-0.8.8 tasks/rcov.rake