Commit 0a886b6454ca25cf2b92bcaf3e98d41cbf0155f2

Authored by Antonio Terceiro
1 parent 8c698880

drop test:rcov task

rcov has been deprecated for a while
Showing 1 changed file with 0 additions and 31 deletions   Show diff stats
lib/tasks/test_rcov.rake
... ... @@ -1,31 +0,0 @@
1   -# Copyright (C) 2007, Keegan Quinn
2   -# Copyright (C) 2007, Colivre <http://www.colivre.coop.br>
3   -#
4   -# See http://keegan.sniz.net/articles/2007/05/27/showin-love-for-rails_rcov
5   -# for original source (a patch for rails_rcov).
6   -#
7   -# This program is free software: you can redistribute it and/or modify
8   -# it under the terms of the GNU General Public License as published by
9   -# the Free Software Foundation, either version 3 of the License, or
10   -# (at your option) any later version.
11   -#
12   -# This program is distributed in the hope that it will be useful,
13   -# but WITHOUT ANY WARRANTY; without even the implied warranty of
14   -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15   -# GNU General Public License for more details.
16   -#
17   -# You should have received a copy of the GNU General Public License
18   -# along with this program. If not, see <http://www.gnu.org/licenses/>.
19   -
20   -namespace :test do
21   - desc "Run all tests with Rcov to measure coverage"
22   - task :rcov do |t|
23   - require 'rbconfig'
24   -
25   - tests = Dir.glob(Rails.root.join('test', '*', '*_test.rb'))
26   - outdir = Rails.root.join('coverage')
27   - test_loader = File.join(Config::CONFIG['rubylibdir'], 'rake', 'rake_test_loader.rb')
28   -
29   - system("rcov", '-o', outdir, '-T', '-x', 'rubygems/*,rcov*', '--rails', '-Ilib:test', test_loader, *tests)
30   - end
31   -end