Method: RSpec::Core::Notifications::ProfileNotification#slow_duration

Defined in:
lib/rspec/core/notifications.rb

#slow_durationFloat

Returns the time taken (in seconds) to run the slowest examples.

Returns:

  • (Float)

    the time taken (in seconds) to run the slowest examples



447
448
449
450
451
452
# File 'lib/rspec/core/notifications.rb', line 447

def slow_duration
  @slow_duration ||=
    slowest_examples.inject(0.0) do |i, e|
      i + e.execution_result.run_time
    end
end