Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added rake task for rcov

  • Loading branch information...
commit 77aa857c71651e599056777cab073b26dfc83f5c 1 parent 341e336
Homer Simpson authored rtomayko committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 Rakefile
View
10 Rakefile
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.