diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-13 20:55:05 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-13 20:55:05 +0000 |
commit | c45ea78c6aeebaae1cfd3b936da54c8472dfdebc (patch) | |
tree | 861d071be90eaba46f7e6439106562b747bf206f | |
parent | ebf618b7fc39d66852f666c12b79fd6e71da0e3a (diff) | |
download | rails-c45ea78c6aeebaae1cfd3b936da54c8472dfdebc.tar.gz rails-c45ea78c6aeebaae1cfd3b936da54c8472dfdebc.tar.bz2 rails-c45ea78c6aeebaae1cfd3b936da54c8472dfdebc.zip |
Cleaned it up a bit.. Dependencies can be declared inline
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2570 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/tasks/testing.rake | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index 7273a69ed4..5497144435 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -10,7 +10,7 @@ def recent_tests(source_pattern, test_path, touched_since = 10.minutes.ago) end.compact end -desc 'Test recent changes.' +desc 'Test recent changes' Rake::TestTask.new(:recent => [ :prepare_test_database ]) do |t| since = TEST_CHANGES_SINCE touched = FileList['test/**/*_test.rb'].select { |path| File.mtime(path) > since } + @@ -21,20 +21,17 @@ Rake::TestTask.new(:recent => [ :prepare_test_database ]) do |t| t.verbose = true t.test_files = touched.uniq end -task :test_recent => [ :prepare_test_database ] desc "Run the unit tests in test/unit" -Rake::TestTask.new("test_units") { |t| +Rake::TestTask.new(:test_units => [ :prepare_test_database ]) do |t| t.libs << "test" t.pattern = 'test/unit/**/*_test.rb' t.verbose = true -} -task :test_units => [ :prepare_test_database ] +end desc "Run the functional tests in test/functional" -Rake::TestTask.new("test_functional") { |t| +Rake::TestTask.new(:test_functional => [ :prepare_test_database ]) do |t| t.libs << "test" t.pattern = 'test/functional/**/*_test.rb' t.verbose = true -} -task :test_functional => [ :prepare_test_database ]
\ No newline at end of file +end
\ No newline at end of file |