Class: RSpec::Core::Notifications::ProfileNotification

Inherits:
Struct
  • Object
show all
Defined in:
lib/rspec/core/notifications.rb

Overview

The ProfileNotification holds information about the results of running a test suite when profiling is enabled. It is used by formatters to provide information at the end of the test run for profiling information.

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Float) duration

the time taken (in seconds) to run the suite

Returns:

  • (Float)

    the current value of duration

461
462
463
# File 'lib/rspec/core/notifications.rb', line 461
def duration
  @duration
end

- (Array(RSpec::Core::Example)) examples

the examples run

Returns:

461
462
463
# File 'lib/rspec/core/notifications.rb', line 461
def examples
  @examples
end

- (Fixnum) number_of_examples

the number of examples to profile

Returns:

  • (Fixnum)

    the current value of number_of_examples

461
462
463
# File 'lib/rspec/core/notifications.rb', line 461
def number_of_examples
  @number_of_examples
end