diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-12 19:04:24 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-12 19:04:24 +0000 |
commit | 13dced9d769951a3bdffc95dc6ccf638b850241a (patch) | |
tree | 22292b9317d4952329d5a23239f18739346d4442 | |
parent | 667693b32cfaf5ff3c87b705cb494029117c80f4 (diff) | |
download | redmine-13dced9d769951a3bdffc95dc6ccf638b850241a.tar.gz redmine-13dced9d769951a3bdffc95dc6ccf638b850241a.zip |
Run only unit, functional then integration tests for coverage.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9824 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/tasks/testing.rake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 513d2be8b..474a09092 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -6,9 +6,8 @@ namespace :test do rm_f "coverage" rm_f "coverage.data" rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/" - files = Dir.glob("test/**/*_test.rb").join(" ") + files = %w(unit functional integration).map {|dir| Dir.glob("test/#{dir}/**/*_test.rb")}.flatten.join(" ") system("#{rcov} #{files}") - system("open coverage/index.html") if PLATFORM['darwin'] end desc 'Run unit and functional scm tests' |