diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-23 08:35:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-09-23 08:35:35 +0200 |
commit | bf8f95fdd25a68d02598c7be864bc97c05132c90 (patch) | |
tree | dfe5cc9752a13d3b6c3bd75e8af2896361abf7bc /tasks/test.rake | |
parent | 4da50a4f3e30d70595807d7debe63f8bbf56bc64 (diff) | |
download | skeletons-bf8f95fdd25a68d02598c7be864bc97c05132c90.zip skeletons-bf8f95fdd25a68d02598c7be864bc97c05132c90.tar.gz |
everything is packed into ruby-gems directory
Diffstat (limited to 'tasks/test.rake')
-rw-r--r-- | tasks/test.rake | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/tasks/test.rake b/tasks/test.rake deleted file mode 100644 index 8257613..0000000 --- a/tasks/test.rake +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: UTF-8 -*- -# -if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty? -require 'rake/testtask' - -namespace :test do - - Rake::TestTask.new(:run) do |t| - t.libs = PROJ.libs - t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file] - else PROJ.test.files end - t.ruby_opts += PROJ.ruby_opts - t.ruby_opts += PROJ.test.opts - end - - if HAVE_RCOV - desc 'Run rcov on the unit tests' - task :rcov => :clobber_rcov do - opts = PROJ.rcov.opts.dup << '-o' << PROJ.rcov.dir - opts = opts.join(' ') - files = if test(?f, PROJ.test.file) then [PROJ.test.file] - else PROJ.test.files end - files = files.join(' ') - sh "#{RCOV} #{files} #{opts}" - end - - task :clobber_rcov do - rm_r 'coverage' rescue nil - end - end - -end # namespace :test - -desc 'Alias to test:run' -task :test => 'test:run' - -task :clobber => 'test:clobber_rcov' if HAVE_RCOV - -end - -# EOF |