Permalink
Browse files

added rake task for rcov

  • Loading branch information...
1 parent 341e336 commit 77aa857c71651e599056777cab073b26dfc83f5c Homer Simpson committed with rtomayko Sep 25, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 Rakefile
View
@@ -117,3 +117,13 @@ task 'sinatra.gemspec' => FileList['{lib,test,compat}/**','Rakefile','CHANGES','
File.open(f.name, 'w') { |io| io.write(spec) }
puts "updated #{f.name}"
end
+
+# Rcov ==============================================================
+namespace :test do
+ desc 'Mesures test coverage'
+ task :coverage do
+ rm_f "coverage"
+ rcov = "rcov --text-summary --test-unit-only -Ilib"
+ system("#{rcov} --no-html --no-color test/*_test.rb")
+ end
+end

0 comments on commit 77aa857

Please sign in to comment.