Changeset 5016
- Timestamp:
- 09/05/06 15:35:50 (2 years ago)
- Files:
-
- trunk/railties/lib/tasks/testing.rake (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/railties/lib/tasks/testing.rake
r4337 r5016 52 52 53 53 namespace :test do 54 desc 'Test recent changes'55 54 Rake::TestTask.new(:recent => "db:test:prepare") do |t| 56 55 since = TEST_CHANGES_SINCE … … 63 62 t.test_files = touched.uniq 64 63 end 64 Rake::Task['test:recent'].comment = "Test recent changes" 65 65 66 desc 'Test changes since last checkin (only Subversion)'67 66 Rake::TestTask.new(:uncommitted => "db:test:prepare") do |t| 68 67 def t.file_list … … 81 80 t.verbose = true 82 81 end 82 Rake::Task['test:uncommitted'].comment = "Test changes since last checkin (only Subversion)" 83 83 84 desc "Run the unit tests in test/unit"85 84 Rake::TestTask.new(:units => "db:test:prepare") do |t| 86 85 t.libs << "test" … … 88 87 t.verbose = true 89 88 end 89 Rake::Task['test:units'].comment = "Run the unit tests in test/unit" 90 90 91 desc "Run the functional tests in test/functional"92 91 Rake::TestTask.new(:functionals => "db:test:prepare") do |t| 93 92 t.libs << "test" … … 95 94 t.verbose = true 96 95 end 96 Rake::Task['test:functionals'].comment = "Run the functional tests in test/functional" 97 97 98 desc "Run the integration tests in test/integration"99 98 Rake::TestTask.new(:integration => "db:test:prepare") do |t| 100 99 t.libs << "test" … … 102 101 t.verbose = true 103 102 end 103 Rake::Task['test:integration'].comment = "Run the integration tests in test/integration" 104 104 105 desc "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)"106 105 Rake::TestTask.new(:plugins => :environment) do |t| 107 106 t.libs << "test" … … 115 114 t.verbose = true 116 115 end 116 Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" 117 117 end