Class: MinitestBender::Recorders::Progress
- Inherits:
-
Object
- Object
- MinitestBender::Recorders::Progress
- Defined in:
- lib/minitest-bender/recorders/progress.rb
Instance Method Summary collapse
-
#initialize(io, total_tests_count) ⇒ Progress
constructor
A new instance of Progress.
- #print_context(_result_context) ⇒ Object
- #print_context_with_results(_result_context, _results) ⇒ Object
- #print_result(result) ⇒ Object
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
#print_context(_result_context) ⇒ Object
8 9 10 |
# File 'lib/minitest-bender/recorders/progress.rb', line 8 def print_context(_result_context) # do nothing end |
#print_context_with_results(_result_context, _results) ⇒ Object
16 17 18 |
# File 'lib/minitest-bender/recorders/progress.rb', line 16 def print_context_with_results(_result_context, _results) # do_nothing end |
#print_result(result) ⇒ Object
12 13 14 |
# File 'lib/minitest-bender/recorders/progress.rb', line 12 def print_result(result) printer.advance end |