@@ -5,10 +5,9 namespace :test do | |||||
5 | task :coverage do |
|
5 | task :coverage do | |
6 | rm_f "coverage" |
|
6 | rm_f "coverage" | |
7 | rm_f "coverage.data" |
|
7 | rm_f "coverage.data" | |
8 | rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib" |
|
8 | rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html" | |
9 | system("#{rcov} --no-html test/unit/*_test.rb") |
|
9 | files = Dir.glob("test/**/*_test.rb").join(" ") | |
10 | system("#{rcov} --no-html test/functional/*_test.rb") |
|
10 | system("#{rcov} #{files}") | |
11 | system("#{rcov} --html test/integration/*_test.rb") |
|
|||
12 | system("open coverage/index.html") if PLATFORM['darwin'] |
|
11 | system("open coverage/index.html") if PLATFORM['darwin'] | |
13 | end |
|
12 | end | |
14 |
|
13 |
General Comments 0
You need to be logged in to leave comments.
Login now