Exclude gems from test coverage.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7963 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-27 22:42:53 +00:00
parent dfa6233484
commit 4ad5182bb2
1 changed files with 1 additions and 1 deletions

View File

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