diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-05 15:35:50 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-05 15:35:50 +0000 |
commit | d48322ecca83765a47c054aa72a7165efe9a81f5 (patch) | |
tree | 4b8482edbaf0c2e598735a14b919a40315f1252b | |
parent | 4f68dcb035ef477ba10fc2719d0b6e612649deb0 (diff) | |
download | rails-d48322ecca83765a47c054aa72a7165efe9a81f5.tar.gz rails-d48322ecca83765a47c054aa72a7165efe9a81f5.tar.bz2 rails-d48322ecca83765a47c054aa72a7165efe9a81f5.zip |
Proper description syntax for test tasks (closes #5308)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/tasks/testing.rake | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index acf70d0c4a..28ef8fb4ec 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -51,7 +51,6 @@ task :test do end namespace :test do - desc 'Test recent changes' Rake::TestTask.new(:recent => "db:test:prepare") do |t| since = TEST_CHANGES_SINCE touched = FileList['test/**/*_test.rb'].select { |path| File.mtime(path) > since } + @@ -62,8 +61,8 @@ namespace :test do t.verbose = true t.test_files = touched.uniq end + Rake::Task['test:recent'].comment = "Test recent changes" - desc 'Test changes since last checkin (only Subversion)' Rake::TestTask.new(:uncommitted => "db:test:prepare") do |t| def t.file_list changed_since_checkin = silence_stderr { `svn status` }.map { |path| path.chomp[7 .. -1] } @@ -80,29 +79,29 @@ namespace :test do t.libs << 'test' t.verbose = true end + Rake::Task['test:uncommitted'].comment = "Test changes since last checkin (only Subversion)" - desc "Run the unit tests in test/unit" Rake::TestTask.new(:units => "db:test:prepare") do |t| t.libs << "test" t.pattern = 'test/unit/**/*_test.rb' t.verbose = true end + Rake::Task['test:units'].comment = "Run the unit tests in test/unit" - desc "Run the functional tests in test/functional" Rake::TestTask.new(:functionals => "db:test:prepare") do |t| t.libs << "test" t.pattern = 'test/functional/**/*_test.rb' t.verbose = true end + Rake::Task['test:functionals'].comment = "Run the functional tests in test/functional" - desc "Run the integration tests in test/integration" Rake::TestTask.new(:integration => "db:test:prepare") do |t| t.libs << "test" t.pattern = 'test/integration/**/*_test.rb' t.verbose = true end + Rake::Task['test:integration'].comment = "Run the integration tests in test/integration" - desc "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" Rake::TestTask.new(:plugins => :environment) do |t| t.libs << "test" @@ -114,4 +113,5 @@ namespace :test do t.verbose = true end + Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" end |