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:
parent
dfa6233484
commit
4ad5182bb2
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue