Class: TestProf::RubyProf::Listener
- Inherits:
-
Object
- Object
- TestProf::RubyProf::Listener
- Defined in:
- lib/test_prof/ruby_prof/rspec.rb
Overview
Reporter for RSpec to profile specific examples with RubyProf
Constant Summary collapse
- NOTIFICATIONS =
:nodoc:
%i[ example_started example_failed example_passed ].freeze
Instance Method Summary collapse
- #example_finished(notification) ⇒ Object (also: #example_passed, #example_failed)
- #example_started(notification) ⇒ Object
Instance Method Details
#example_finished(notification) ⇒ Object Also known as: example_passed, example_failed
19 20 21 22 23 24 |
# File 'lib/test_prof/ruby_prof/rspec.rb', line 19 def example_finished(notification) return unless profile?(notification.example) notification.example.[:rprof_report].dump( notification.example.full_description.parameterize ) end |