Browse files

quick rdoc task

  • Loading branch information...
1 parent 2d8e951 commit f07697a5d879f48fad0a1052bc9593a4e1201db8 @justinfrench committed Jan 1, 2009
Showing with 9 additions and 0 deletions.
  1. +9 −0 Rakefile
View
9 Rakefile
@@ -21,3 +21,12 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
+
+desc "Run all examples with RCov"
+task :coverage do
+ rm_f "coverage"
+ rm_f "coverage.data"
+ rcov = "rcov --aggregate coverage.data --text-summary -Ilib"
+ system("#{rcov} --no-html test/*_test.rb")
+ system("open coverage/index.html") if PLATFORM['darwin']
+end

0 comments on commit f07697a

Please sign in to comment.