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

365
366
367
# File 'lib/rspec/core/notifications.rb', line 365
def duration
  @duration
end

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

the examples run

Returns:

365
366
367
# File 'lib/rspec/core/notifications.rb', line 365
def examples
  @examples
end

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

the failed examples

Returns:

365
366
367
# File 'lib/rspec/core/notifications.rb', line 365
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

365
366
367
# File 'lib/rspec/core/notifications.rb', line 365
def load_time
  @load_time
end

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

the pending examples

Returns:

365
366
367
# File 'lib/rspec/core/notifications.rb', line 365
def pending_examples
  @pending_examples
end