230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
# File 'lib/test_bench/bootstrap.rb', line 230
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
|