Class: MinitestBender::Recorders::Progress

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest-bender/recorders/progress.rb

Instance Method Summary collapse

Constructor Details

#initialize(io, total_tests_count) ⇒ Progress

Returns a new instance of Progress.



4
5
6
# File 'lib/minitest-bender/recorders/progress.rb', line 4

def initialize(io, total_tests_count)
  @printer = Printers::WithProgressBar.new(io, total_tests_count)
end

Instance Method Details



8
9
10
# File 'lib/minitest-bender/recorders/progress.rb', line 8

def print_context(_result_context)
  # do nothing
end


16
17
18
# File 'lib/minitest-bender/recorders/progress.rb', line 16

def print_context_with_results(_result_context, _results)
  # do_nothing
end


12
13
14
# File 'lib/minitest-bender/recorders/progress.rb', line 12

def print_result(result)
  printer.advance
end