Skip to content
Browse files

Add TEST_DIRS enviroment for constrain test directories in rakefile

  • Loading branch information...
1 parent a92814b commit b28e5c369519aba28e25fbc42c096b8d464912ea @hbakhtiyor hbakhtiyor committed
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 b28e5c3

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