class Minitest::LineReporter
def report
def report return unless @failures.any? io.puts io.puts "Focus on failing tests:" pwd = Pathname.new(Dir.pwd) @failures.each do |res| meth = res.method(res.name) file, line = meth.source_location if file file = Pathname.new(file) file = file.relative_path_from(pwd) if file.absolute? output = "mtest #{file}:#{line}" output = "\e[31m#{output}\e[0m" if $stdout.tty? io.puts output end end end