All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.rake-12.3.2.lib.rake.rake_test_loader.rb Maven / Gradle / Ivy

The newest version!
# frozen_string_literal: true
require "rake"

# Load the test files from the command line.
argv = ARGV.select do |argument|
  begin
    case argument
    when /^-/ then
      argument
    when /\*/ then
      FileList[argument].to_a.each do |file|
        require File.expand_path file
      end

      false
    else
      require File.expand_path argument

      false
    end
  rescue LoadError => e
    raise unless e.path
    abort "\nFile does not exist: #{e.path}\n\n"
  end
end

ARGV.replace argv




© 2015 - 2024 Weber Informatics LLC | Privacy Policy