Sha256: df7850497a1c5f788affa1d81ca686ff9d74552900811997d5846d372396a70b

Contents?: true

Size: 515 Bytes

Versions: 21

Compression:

Stored size: 515 Bytes

Contents

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

RCOV_DIR = "#{File.dirname(__FILE__)}/../doc/output/coverage"

desc "Run all specs (except examples) with rcov"
Spec::Rake::SpecTask.new(:rcov) do |t|
  t.spec_files = FileList['specs/**/*.rb']
  t.spec_files.exclude 'examples.rb'
  t.rcov = true
  t.rcov_opts = ['--exclude examples', '--exclude specs']
  t.rcov_dir = RCOV_DIR
end

RCov::VerifyTask.new(:verify_rcov => :rcov) do |t|
  t.threshold = 100.0
  t.index_html = "#{RCOV_DIR}/index.html"
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.0.0 tasks/rcov.rake