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

#durationFloat

the time taken (in seconds) to run the suite

Returns:

  • (Float)

    the current value of duration



349
350
351
# File 'lib/rspec/core/notifications.rb', line 349

def duration
  @duration
end

#examplesArray(RSpec::Core::Example)

the examples run

Returns:



349
350
351
# File 'lib/rspec/core/notifications.rb', line 349

def examples
  @examples
end

#failed_examplesArray(RSpec::Core::Example)

the failed examples

Returns:



349
350
351
# File 'lib/rspec/core/notifications.rb', line 349

def failed_examples
  @failed_examples
end

#load_timeFloat

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

Returns:

  • (Float)

    the current value of load_time



349
350
351
# File 'lib/rspec/core/notifications.rb', line 349

def load_time
  @load_time
end

#pending_examplesArray(RSpec::Core::Example)

the pending examples

Returns:



349
350
351
# File 'lib/rspec/core/notifications.rb', line 349

def pending_examples
  @pending_examples
end