Skip to content
Browse files

Merge pull request #10138 from hbakhtiyor/test-dirs-environment

Add TEST_DIRS enviroment for constrain test directories in rakefile
  • Loading branch information...
2 parents d20c320 + b28e5c3 commit 9c7bf25e0ca58da568bc9f5cf4b3f0b6dcdb0aa8 @rafaelfranca rafaelfranca committed Apr 9, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 railties/Rakefile
View
5 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',

0 comments on commit 9c7bf25

Please sign in to comment.
Something went wrong with that request. Please try again.