diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-02 19:59:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-02 19:59:38 +0000 |
commit | c3ba302f0de630d9872efb3eeb1b9437f56b5448 (patch) | |
tree | d99a2be556383e256d71bd22c0fe8bace5ecbb5a /lib/tasks | |
parent | f4010f30185bb7be78c11af76d18b81725b06992 (diff) | |
download | redmine-c3ba302f0de630d9872efb3eeb1b9437f56b5448.tar.gz redmine-c3ba302f0de630d9872efb3eeb1b9437f56b5448.zip |
Use simplecov for code coverage, rcov does not support ruby>=1.9.
git-svn-id: http://svn.redmine.org/redmine/trunk@13691 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/testing.rake | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 274b868cc..e267d0820 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -1,13 +1,9 @@ -### From http://svn.geekdaily.org/public/rails/plugins/generally_useful/tasks/coverage_via_rcov.rake - namespace :test do desc 'Measures test coverage' task :coverage do rm_f "coverage" - rm_f "coverage.data" - rcov = "rcov --rails --aggregate coverage.data --text-summary -Ilib --html --exclude gems/" - files = %w(unit functional integration).map {|dir| Dir.glob("test/#{dir}/**/*_test.rb")}.flatten.join(" ") - system("#{rcov} #{files}") + ENV["COVERAGE"] = "1" + Rake::Task["test"].invoke end desc 'Run unit and functional scm tests' |