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:
parent
667693b32c
commit
13dced9d76
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue