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

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

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

the examples run

Returns:

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

- (Fixnum) number_of_examples

the number of examples to profile

Returns:

  • (Fixnum)

    the current value of number_of_examples

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