module Minitest

raw.githubusercontent.com/judofyr/minitest-line/master/lib/minitest/line_plugin.rb BEGIN generated by rake update, do not modify

raw.githubusercontent.com/judofyr/minitest-line/master/lib/minitest/line/describe_track.rb BEGIN generated by rake update, do not modify

raw.githubusercontent.com/blowmage/minitest-rg/master/lib/minitest/rg_plugin.rb BEGIN generated by rake update, do not modify

Public Class Methods

plugin_line_init(options) click to toggle source
# File lib/maxitest/vendor/line.rb, line 73
def self.plugin_line_init(options)
  unless exp_line = options[:line]
    reporter.reporters << LineReporter.new
    return
  end

  tests = Minitest::Line.tests_with_lines

  filter, _ = tests.sort_by { |n, l| -l }.detect { |n, l| exp_line >= l }

  raise "Could not find test method before line #{exp_line}" unless filter

  options[:filter] = filter
end
plugin_line_inject_reporter() click to toggle source
# File lib/maxitest/vendor/line.rb, line 120
def self.plugin_line_inject_reporter
end
plugin_line_options(opts, options) click to toggle source
# File lib/maxitest/vendor/line.rb, line 67
def self.plugin_line_options(opts, options)
  opts.on '-l', '--line N', Integer, "Run test at line number" do |lineno|
    options[:line] = lineno
  end
end