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