class RspecProgressExtended::Formatter
Public Instance Methods
example_failed(_notification)
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 30 def example_failed(_notification) output.print RSpec::Core::Formatters::ConsoleCodes.wrap('F', :failure) print_progress end
example_passed(_notification)
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 20 def example_passed(_notification) output.print RSpec::Core::Formatters::ConsoleCodes.wrap('.', :success) print_progress end
example_pending(_notification)
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 25 def example_pending(_notification) output.print RSpec::Core::Formatters::ConsoleCodes.wrap('*', :pending) print_progress end
print_progress()
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 13 def print_progress @i += 1 if @i % 80 == 0 output.puts " #{@i}/#{@total}" end end
start(notification)
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 8 def start(notification) @i = 0 @total = notification.count end
start_dump(_notification)
click to toggle source
# File lib/rspec_progress_extended/formatter.rb, line 35 def start_dump(_notification) output.puts end