summaryrefslogtreecommitdiffstats
path: root/lib/tasks/testing.rake
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-07-27 00:55:43 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-07-27 00:55:43 +0000
commit26bbad5f23b8f9a3838095568038683d167cc808 (patch)
tree7375d26fb85c27e86f690c075b77c4b28ec0f371 /lib/tasks/testing.rake
parentdcba9f18e6f3a19af85bb66843eb97107805bb75 (diff)
downloadredmine-26bbad5f23b8f9a3838095568038683d167cc808.tar.gz
redmine-26bbad5f23b8f9a3838095568038683d167cc808.zip
Switch from a custom rcov task to the metric_fu gem.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2825 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r--lib/tasks/testing.rake45
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake
index da832b3e7..b9e2283af 100644
--- a/lib/tasks/testing.rake
+++ b/lib/tasks/testing.rake
@@ -29,48 +29,3 @@ namespace :test do
end
end
end
-
-### Inspired by http://blog.labratz.net/articles/2006/12/2/a-rake-task-for-rcov
-begin
- require 'rcov/rcovtask'
-
- rcov_options = "--rails --aggregate test/coverage.data --exclude '/gems/'"
-
- namespace :test do
- desc "Aggregate code coverage for all tests"
- Rcov::RcovTask.new('coverage') do |t|
- t.libs << 'test'
- t.test_files = FileList['test/{unit,integration,functional}/*_test.rb']
- t.verbose = true
- t.rcov_opts << rcov_options
- end
-
- namespace :coverage do
- desc "Delete coverage test data"
- task :clean do
- rm_f "test/coverage.data"
- rm_rf "test/coverage"
- end
-
- desc "Aggregate code coverage for all tests with HTML output"
- Rcov::RcovTask.new('html') do |t|
- t.libs << 'test'
- t.test_files = FileList['test/{unit,integration,functional}/*_test.rb']
- t.output_dir = "test/coverage"
- t.verbose = true
- t.rcov_opts << rcov_options
- end
-
- desc "Open the HTML coverage report"
- task :show_results do
- system "open test/coverage/index.html"
- end
-
- task :full => "test:coverage:clean"
- task :full => "test:coverage:html"
- task :full => "test:coverage:show_results"
- end
- end
-rescue LoadError
- # rcov not available
-end