Method: TestProf::RubyProf::Listener#example_finished

Defined in:
lib/test_prof/ruby_prof/rspec.rb

#example_finished(notification) ⇒ Object



26
27
28
29
30
31
# File 'lib/test_prof/ruby_prof/rspec.rb', line 26

def example_finished(notification)
  return unless profile?(notification.example)
  notification.example.[:rprof_report]&.dump(
    self.class.report_name_generator.call(notification.example)
  )
end