summaryrefslogtreecommitdiffstats
path: root/lib/tasks/testing.rake
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-15 13:43:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-15 13:43:31 +0000
commitded602c89f313312f1c06f0b28e68754936af7b4 (patch)
tree284cb9f5e9c287ec889a114b1b0be5ded72da503 /lib/tasks/testing.rake
parent534ce51154c55078a611a098b225b6d0c9f8653f (diff)
downloadredmine-ded602c89f313312f1c06f0b28e68754936af7b4.tar.gz
redmine-ded602c89f313312f1c06f0b28e68754936af7b4.zip
Run all tests for coverage.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r--lib/tasks/testing.rake7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index 4e944e1d9..2028bd15a 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -5,10 +5,9 @@ namespace :test do
task :coverage do
rm_f "coverage"
rm_f "coverage.data"
- rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib"
- system("#{rcov} --no-html test/unit/*_test.rb")
- system("#{rcov} --no-html test/functional/*_test.rb")
- system("#{rcov} --html test/integration/*_test.rb")
+ rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html"
+ files = Dir.glob("test/**/*_test.rb").join(" ")
+ system("#{rcov} #{files}")
system("open coverage/index.html") if PLATFORM['darwin']
end