Class: RSpec::Core::Notifications::SummaryNotification

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

Overview

The SummaryNotification holds information about the results of running a test suite. It is used by formatters to provide information at the end of the test run.

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



356
357
358
# File 'lib/rspec/core/notifications.rb', line 356

def duration
  @duration
end

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

the examples run

Returns:



356
357
358
# File 'lib/rspec/core/notifications.rb', line 356

def examples
  @examples
end

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

the failed examples

Returns:



356
357
358
# File 'lib/rspec/core/notifications.rb', line 356

def failed_examples
  @failed_examples
end

- (Float) load_time

the number of seconds taken to boot RSpec and load the spec files

Returns:

  • (Float)

    the current value of load_time



356
357
358
# File 'lib/rspec/core/notifications.rb', line 356

def load_time
  @load_time
end

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

the pending examples

Returns:



356
357
358
# File 'lib/rspec/core/notifications.rb', line 356

def pending_examples
  @pending_examples
end