Class: Minitest::TestProf::EventProfFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/event_prof_formatter.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(profilers) ⇒ EventProfFormatter

Returns a new instance of EventProfFormatter.



12
13
14
15
# File 'lib/minitest/event_prof_formatter.rb', line 12

def initialize(profilers)
  @profilers = profilers
  @results = []
end

Instance Method Details

#prepare_resultsObject



17
18
19
20
21
22
23
24
# File 'lib/minitest/event_prof_formatter.rb', line 17

def prepare_results
  @profilers.each do |profiler|
    total_results(profiler)
    by_groups(profiler)
    by_examples(profiler)
  end
  @results.join
end