Permalink
Browse files

added rcov.opts to exclude external libs

  • Loading branch information...
mislav committed Aug 19, 2008
1 parent e57bde5 commit f1f87881c4973902a01880e4c865f1a751fb3491
Showing with 8 additions and 5 deletions.
  1. +6 −5 Rakefile
  2. +2 −0 spec/rcov.opts
View
@@ -13,16 +13,17 @@ Spec::Rake::SpecTask.new(:spec) do |t|
end
namespace :spec do
- desc 'Run all specs in spec directory with RCov'
+ desc 'Analyze spec coverage with RCov'
Spec::Rake::SpecTask.new(:rcov) do |t|
- t.spec_opts = ['--options', spec_opts]
t.spec_files = spec_glob
+ t.spec_opts = ['--options', spec_opts]
t.rcov = true
- # t.rcov_opts = lambda do
- # IO.readlines('spec/rcov.opts').map {|l| l.chomp.split " "}.flatten
- # end
+ t.rcov_opts = lambda do
+ IO.readlines('spec/rcov.opts').map { |l| l.chomp.split(" ") }.flatten
+ end
end
+
desc 'Print Specdoc for all specs'
Spec::Rake::SpecTask.new(:doc) do |t|
t.spec_opts = ['--format', 'specdoc', '--dry-run']
View
@@ -0,0 +1,2 @@
+--exclude ^\/,^spec\/
+--no-validator-links

0 comments on commit f1f8788

Please sign in to comment.