class method
self.extract_filters
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
self.extract_filters(argv)
No documentation comment.
Parameters
-
argvreq
Source
# File railties/lib/rails/test_unit/runner.rb, line 62
def extract_filters(argv)
# Extract absolute and relative paths but skip -n /.*/ regexp filters.
argv.select { |arg| arg =~ %r%^/?\w+/% && !arg.end_with?("/") }.map do |path|
case
when path =~ /(:\d+)+$/
file, *lines = path.split(":")
filters << [ file, lines ]
file
when Dir.exist?(path)
"#{path}/**/*_test.rb"
else
filters << [ path, [] ]
path
end
end
end
Defined in railties/lib/rails/test_unit/runner.rb line 62
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::TestUnit::Runner