Skip to content

Commit d68329f

Browse files
committed
[test] allow multiple tests in TEST= when executing Rails tests
This helps debugging stuff that only fails when run in combination.
1 parent 72c6f64 commit d68329f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rakelib/rails.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace :rails do
5151
ruby_opts_string += " -C \"#{ar_path}\""
5252
ruby_opts_string += " -rbundler/setup"
5353
ruby_opts_string += " -rminitest -rminitest/excludes" unless ENV['NO_EXCLUDES'].eql?('true')
54-
file_list = ENV["TEST"] ? FileList[ ENV["TEST"] ] : test_files_finder.call
54+
file_list = ENV["TEST"] ? FileList[ ENV["TEST"].split(',') ] : test_files_finder.call
5555
file_list_string = file_list.map { |fn| "\"#{fn}\"" }.join(' ')
5656
# test_loader_code = "-e \"ARGV.each{|f| require f}\"" # :direct
5757
option_list = ( ENV["TESTOPTS"] || ENV["TESTOPT"] || ENV["TEST_OPTS"] || '' )

0 commit comments

Comments
 (0)