aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorAbd ar-Rahman Hamidi <bakhtiyor.h@gmail.com>2013-04-08 15:16:33 +0500
committerAbd ar-Rahman Hamidi <bakhtiyor.h@gmail.com>2013-04-08 15:16:33 +0500
commitb28e5c369519aba28e25fbc42c096b8d464912ea (patch)
treec385774cef8d4fe0942c70ebdfdf30be12ffa301 /railties/Rakefile
parenta92814b001d93f8ef533e692011bbc8824841bf7 (diff)
downloadrails-b28e5c369519aba28e25fbc42c096b8d464912ea.tar.gz
rails-b28e5c369519aba28e25fbc42c096b8d464912ea.tar.bz2
rails-b28e5c369519aba28e25fbc42c096b8d464912ea.zip
Add TEST_DIRS enviroment for constrain test directories in rakefile
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index a9cb37776d..4789f41ad4 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -12,8 +12,9 @@ task :test => 'test:isolated'
namespace :test do
task :isolated do
- dir = ENV["TEST_DIR"] || "**"
- Dir["test/#{dir}/*_test.rb"].each do |file|
+ dirs = (ENV["TEST_DIR"] || ENV["TEST_DIRS"] || "**").split(",")
+ test_files = dirs.map { |dir| "test/#{dir}/*_test.rb" }
+ Dir[*test_files].each do |file|
next true if file.include?("fixtures")
dash_i = [
'test',