311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
|
# File 'lib/test_bench/bootstrap.rb', line 311
def self.call(paths=nil, exclude_pattern: nil)
paths ||= []
exclude_pattern ||= Defaults.exclude_file_pattern
if paths.is_a?(String)
paths = [paths]
end
if paths.empty?
paths << Defaults.tests_dir
end
paths.each do |path|
Path.search(path, '*.rb', exclude_pattern).each do |file|
Output.write "Running #{file}"
begin
load(file)
ensure
Output.newline
end
end
end
end
|