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



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

def duration
  @duration
end

#examplesArray(RSpec::Core::Example)

the examples run



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

def examples
  @examples
end

#failed_examplesArray(RSpec::Core::Example)

the failed examples



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



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



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

def pending_examples
  @pending_examples
end