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

#durationFloat

the time taken (in seconds) to run the suite

Returns:

  • (Float)

    the current value of duration



446
447
448
# File 'lib/rspec/core/notifications.rb', line 446

def duration
  @duration
end

#examplesArray(RSpec::Core::Example)

the examples run

Returns:



446
447
448
# File 'lib/rspec/core/notifications.rb', line 446

def examples
  @examples
end

#number_of_examplesFixnum

the number of examples to profile

Returns:

  • (Fixnum)

    the current value of number_of_examples



446
447
448
# File 'lib/rspec/core/notifications.rb', line 446

def number_of_examples
  @number_of_examples
end