Run all tests for coverage.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3060 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-11-15 13:43:31 +00:00
parent 534ce51154
commit ded602c89f
1 changed files with 3 additions and 4 deletions

View File

@ -5,10 +5,9 @@ namespace :test do
task :coverage do task :coverage do
rm_f "coverage" rm_f "coverage"
rm_f "coverage.data" rm_f "coverage.data"
rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib" rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html"
system("#{rcov} --no-html test/unit/*_test.rb") files = Dir.glob("test/**/*_test.rb").join(" ")
system("#{rcov} --no-html test/functional/*_test.rb") system("#{rcov} #{files}")
system("#{rcov} --html test/integration/*_test.rb")
system("open coverage/index.html") if PLATFORM['darwin'] system("open coverage/index.html") if PLATFORM['darwin']
end end