Class: Minitest::Sprint

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/sprint.rb

Overview

Runs (Get it? It’s fast!) your tests and makes it easier to rerun individual failures.

Defined Under Namespace

Classes: RakeReporter, SprintReporter

Class Method Summary collapse

Class Method Details

.run(args = ARGV) ⇒ Object

Process and run minitest cmdline.



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/minitest/sprint.rb', line 19

def self.run args = ARGV
  if args.delete("--bisect") or args.delete("-b") then
    require_relative "bisect"

    return Minitest::Bisect.run ARGV
  end

  Minitest::PathExpander.new(args).process { |f|
    require "./#{f}" if File.file? f
  }
end