Module: Minitest
- Extended by:
- Maxitest::VerboseBacktrace
- Defined in:
- lib/maxitest/vendor/rg.rb,
lib/maxitest/vendor/line.rb,
lib/maxitest/vendor/line_describe.rb
Overview
raw.githubusercontent.com/judofyr/minitest-line/master/lib/minitest/line/describe_track.rb BEGIN generated by rake update, do not modify
Defined Under Namespace
Modules: Line Classes: LineReporter, RG, Runnable, Test
Class Method Summary collapse
- .plugin_line_init(options) ⇒ Object
- .plugin_line_inject_reporter ⇒ Object
- .plugin_line_options(opts, options) ⇒ Object
-
.plugin_rg_init(options) ⇒ Object
:nodoc:.
-
.plugin_rg_options(opts, _options) ⇒ Object
:nodoc:.
Methods included from Maxitest::VerboseBacktrace
plugin_maxitest_verbose_backtrace_init
Class Method Details
.plugin_line_init(options) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/maxitest/vendor/line.rb', line 73 def self.plugin_line_init() unless exp_line = [: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 [:filter] = filter end |
.plugin_line_inject_reporter ⇒ Object
120 121 |
# File 'lib/maxitest/vendor/line.rb', line 120 def self.plugin_line_inject_reporter end |
.plugin_line_options(opts, options) ⇒ Object
67 68 69 70 71 |
# File 'lib/maxitest/vendor/line.rb', line 67 def self.(opts, ) opts.on '-l', '--line N', Integer, "Run test at line number" do |lineno| [:line] = lineno end end |