Class: MinitestBender::Recorders::ProgressIssues
- Inherits:
-
Object
- Object
- MinitestBender::Recorders::ProgressIssues
- Defined in:
- lib/minitest-bender/recorders/progress_issues.rb
Instance Method Summary collapse
-
#initialize(io, total_tests_count) ⇒ ProgressIssues
constructor
A new instance of ProgressIssues.
- #print_context(_result_context) ⇒ Object
- #print_context_with_results(_result_context, _results) ⇒ Object
- #print_result(result) ⇒ Object
Constructor Details
#initialize(io, total_tests_count) ⇒ ProgressIssues
Returns a new instance of ProgressIssues.
4 5 6 |
# File 'lib/minitest-bender/recorders/progress_issues.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_issues.rb', line 8 def print_context(_result_context) # do nothing end |
#print_context_with_results(_result_context, _results) ⇒ Object
19 20 21 |
# File 'lib/minitest-bender/recorders/progress_issues.rb', line 19 def print_context_with_results(_result_context, _results) # do_nothing end |
#print_result(result) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/minitest-bender/recorders/progress_issues.rb', line 12 def print_result(result) printer.print_line(result_line(result)) unless result.passed? lines = result.state.detail_lines_without_header(result) printer.print_lines(lines) printer.advance end |