method

extract_filters

extract_filters(argv)
private

No documentation available.

# 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| path_argument?(arg) && !regexp_filter?(arg) }.map do |path|
              path = path.tr("\\", "/")
              case
              when /(:\d+)+$/.match?(path)
                file, *lines = path.split(":")
                filters << [ file, lines ]
                file
              when Dir.exist?(path)
                "#{path}/**/*_test.rb"
              else
                filters << [ path, [] ]
                path
              end
            end
          end