diff options
author | murphy <murphy@rubychan.de> | 2011-03-07 22:40:29 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-03-07 22:40:29 +0000 |
commit | 6fc1d81350fe564449a73661218c5e5c93922d25 (patch) | |
tree | bdb481feff279e332c4869974ecd4d361872ff52 | |
parent | a4efa095d655223355f8b6bea00d359224afd9a8 (diff) | |
download | coderay-6fc1d81350fe564449a73661218c5e5c93922d25.tar.gz |
removed test:all tasks - using rvm now.
-rw-r--r-- | rake_tasks/test.rake | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/rake_tasks/test.rake b/rake_tasks/test.rake index a01ee0c..203bbf6 100644 --- a/rake_tasks/test.rake +++ b/rake_tasks/test.rake @@ -1,7 +1,8 @@ namespace :test do + desc 'run all sample tests' task :samples do - ruby "./sample/suite.rb" + ruby './sample/suite.rb' end desc 'run functional tests' @@ -11,47 +12,15 @@ namespace :test do ruby './test/functional/for_redcloth.rb' end - namespace :functional do - desc 'run all functional tests on all supported Ruby platforms' - task :all do - $stdout.sync = true - for task in %w(test:functional 187 test:functional ee test:functional 19 test:functional 191 test:functional jruby test:functional) - if task == 'test:functional' - puts "\n\nTesting with #{RUBY}..." - Rake::Task['test:functional'].reenable - Rake::Task['test:functional'].invoke - else - Rake::Task[task].invoke - end - end - end - end - desc 'run unit tests' task :units do ENV['check_rubygems'] = 'true' ruby './test/unit/suite.rb' end - namespace :units do - desc 'run all unit tests on all supported Ruby platforms' - task :all do - $stdout.sync = true - for task in %w(test:units 187 test:units ee test:units 19 test:units 191 test:units jruby test:units) - if task == 'test:units' - puts "\n\nTesting with #{RUBY}..." - Rake::Task['test:units'].reenable - Rake::Task['test:units'].invoke - else - Rake::Task[task].invoke - end - end - end - end - desc 'run all scanner tests' task :scanners do - ruby "./test/scanners/suite.rb" + ruby './test/scanners/suite.rb' end namespace :scanner do @@ -81,25 +50,6 @@ namespace :test do end end - desc 'run all tests on all supported Ruby platforms' - task :all do - $stdout.sync = true - for task in %w(test 19 test jruby test) - if task == 'test' - print "\n\nTesting with " - ruby '-v' - Rake::Task['test'].reenable - Rake::Task['test:exe'].reenable - Rake::Task['test:functional'].reenable - Rake::Task['test:units'].reenable - Rake::Task['test:scanners'].reenable - Rake::Task['test'].invoke - else - Rake::Task[task].invoke - end - end - end - desc 'test the CodeRay executable' task :exe do ruby './test/executable/suite.rb' |