Permalink
Browse files

Added rcov Rake task

  • Loading branch information...
1 parent f223c01 commit 36afa66d4c71d4550f6cb75062adce708e55b56b Luca Guidi committed Jun 10, 2009
Showing with 8 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +7 −1 Rakefile
View
@@ -2,4 +2,5 @@ nohup.out
redis/*
rdsrv
pkg/*
+coverage/*
.idea
View
@@ -53,4 +53,10 @@ task :make_spec do
File.open("#{GEM}.gemspec", "w") do |file|
file.puts spec.to_ruby
end
-end
+end
+
+desc "Run all examples with RCov"
+Spec::Rake::SpecTask.new(:rcov) do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.rcov = true
+end

0 comments on commit 36afa66

Please sign in to comment.