Permalink
Browse files

Added test_plugins task: Run the plugin tests in vendor/plugins/**/te…

…st (or specify with PLUGIN=name) [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2788 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 9ad0f08 commit b7a2973f718a6e115967411de4c2943a3b3b2255 @dhh dhh committed Oct 28, 2005
Showing with 15 additions and 0 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +13 −0 railties/lib/tasks/testing.rake
View
@@ -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]
@@ -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

0 comments on commit b7a2973

Please sign in to comment.