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
This commit is contained in:
Jean-Philippe Lang 2012-06-12 19:04:24 +00:00
parent 667693b32c
commit 13dced9d76
1 changed files with 1 additions and 2 deletions

View File

@ -6,9 +6,8 @@ namespace :test do
rm_f "coverage" rm_f "coverage"
rm_f "coverage.data" rm_f "coverage.data"
rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/" 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("#{rcov} #{files}")
system("open coverage/index.html") if PLATFORM['darwin']
end end
desc 'Run unit and functional scm tests' desc 'Run unit and functional scm tests'