Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5016

Show
Ignore:
Timestamp:
09/05/06 15:35:50 (2 years ago)
Author:
david
Message:

Proper description syntax for test tasks (closes #5308)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/lib/tasks/testing.rake

    r4337 r5016  
    5252 
    5353namespace :test do 
    54   desc 'Test recent changes' 
    5554  Rake::TestTask.new(:recent => "db:test:prepare") do |t| 
    5655    since = TEST_CHANGES_SINCE 
     
    6362    t.test_files = touched.uniq 
    6463  end 
     64  Rake::Task['test:recent'].comment = "Test recent changes" 
    6565   
    66   desc 'Test changes since last checkin (only Subversion)' 
    6766  Rake::TestTask.new(:uncommitted => "db:test:prepare") do |t| 
    6867    def t.file_list 
     
    8180    t.verbose = true 
    8281  end 
     82  Rake::Task['test:uncommitted'].comment = "Test changes since last checkin (only Subversion)" 
    8383 
    84   desc "Run the unit tests in test/unit" 
    8584  Rake::TestTask.new(:units => "db:test:prepare") do |t| 
    8685    t.libs << "test" 
     
    8887    t.verbose = true 
    8988  end 
     89  Rake::Task['test:units'].comment = "Run the unit tests in test/unit" 
    9090 
    91   desc "Run the functional tests in test/functional" 
    9291  Rake::TestTask.new(:functionals => "db:test:prepare") do |t| 
    9392    t.libs << "test" 
     
    9594    t.verbose = true 
    9695  end 
     96  Rake::Task['test:functionals'].comment = "Run the functional tests in test/functional" 
    9797 
    98   desc "Run the integration tests in test/integration" 
    9998  Rake::TestTask.new(:integration => "db:test:prepare") do |t| 
    10099    t.libs << "test" 
     
    102101    t.verbose = true 
    103102  end 
     103  Rake::Task['test:integration'].comment = "Run the integration tests in test/integration" 
    104104 
    105   desc "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" 
    106105  Rake::TestTask.new(:plugins => :environment) do |t| 
    107106    t.libs << "test" 
     
    115114    t.verbose = true 
    116115  end 
     116  Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" 
    117117end