Commit 9dd0a1ecfccefb426d5db1154b4d5cac4cd9bf04
1 parent
6612138c
Exists in
master
and in
29 other branches
ActionItem8: adding proper credit
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@53 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
29 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,29 @@ |
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 | + puts "Generating full test coverage report..." | |
24 | + test_tasks = Rake::Task.tasks.select{ |t| t.comment && [ 'test:units', 'test:functionals', 'test:integration', 'test:plugins' ].include?(t.name) } | |
25 | + for test_task in test_tasks | |
26 | + Rake::Task[test_task.name + ':rcov'].invoke | |
27 | + end | |
28 | + end | |
29 | +end | ... | ... |