tasks/rcov.rake in gecoder-0.8.0 vs tasks/rcov.rake in gecoder-0.8.1
- old
+ new
@@ -1,17 +1,18 @@
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'
RCOV_DIR = "#{File.dirname(__FILE__)}/../doc/output/coverage"
-desc "Run all specs with rcov"
+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
\ No newline at end of file
+end