Permalink
Browse files

Added spec:rcov task

  • Loading branch information...
1 parent 4274127 commit 10922a3f2073fdfdf58d0e6033a9e4a1361065a2 Thiago Morello committed Dec 18, 2009
Showing with 7 additions and 0 deletions.
  1. +7 −0 Rakefile
View
@@ -44,6 +44,13 @@ Rake::RDocTask.new do |rd|
rd.options = spec.rdoc_options
end
+desc "Rspec : run all with RCov"
+Spec::Rake::SpecTask.new('spec:rcov') do |t|
+ t.spec_files = FileList['spec/**/*.rb']
+ t.rcov = true
+ t.rcov_opts = ['--exclude', 'gems', '--exclude', 'spec']
+end
+
desc "RSpec : run all"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/**/*.rb']

0 comments on commit 10922a3

Please sign in to comment.