diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 19:52:28 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-28 19:52:28 +0000 |
commit | b7a2973f718a6e115967411de4c2943a3b3b2255 (patch) | |
tree | 6697d87e4b7fd60963d9b5dcf4155feebb46fb95 | |
parent | 9ad0f0898588841ea48744996acbe38ce3ec45e0 (diff) | |
download | rails-b7a2973f718a6e115967411de4c2943a3b3b2255.tar.gz rails-b7a2973f718a6e115967411de4c2943a3b3b2255.tar.bz2 rails-b7a2973f718a6e115967411de4c2943a3b3b2255.zip |
Added test_plugins task: Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/CHANGELOG | 2 | ||||
-rw-r--r-- | railties/lib/tasks/testing.rake | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG index 9a0a7f8825..a1ec0a123c 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Added test_plugins task: Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name) [DHH] + * Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH] * Added plugin generator to create a stub structure for a new plugin in vendor/plugins (see "script/generate plugin" for help) [DHH] diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake index 5497144435..a62ed1d2b0 100644 --- a/railties/lib/tasks/testing.rake +++ b/railties/lib/tasks/testing.rake @@ -34,4 +34,17 @@ Rake::TestTask.new(:test_functional => [ :prepare_test_database ]) do |t| t.libs << "test" t.pattern = 'test/functional/**/*_test.rb' t.verbose = true +end + +desc "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)" +Rake::TestTask.new(:test_plugins => [ :prepare_test_database ]) do |t| + t.libs << "test" + + if ENV['PLUGIN'] + t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/*_test.rb" + else + t.pattern = 'vendor/plugins/**/test/*_test.rb' + end + + t.verbose = true end
\ No newline at end of file |