123456789_123456789_123456789_123456789_123456789_

Class: Minitest::Sprint

Relationships & Source Files
Namespace Children
Classes:
Inherits: Object
Defined in: lib/minitest/sprint.rb

Overview

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

Class Method Summary

Class Method Details

.run(args = ARGV)

Process and run minitest cmdline.

[ GitHub ]

  
# 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