]> source.dussan.org Git - redmine.git/commitdiff
Exclude gems from test coverage.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Nov 2011 22:42:53 +0000 (22:42 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 27 Nov 2011 22:42:53 +0000 (22:42 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7963 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/testing.rake

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