Class RSpec::Core::Reporter
In: lib/rspec/core/reporter.rb
Parent: Object

Methods

Constants

NOTIFICATIONS = %W[start message example_group_started example_group_finished example_started

Public Class methods

Public Instance methods

abort(seed)

Alias for finish

@api @param [Object] An obect that wishes to be notified of reporter events @param [Array] Array of symbols represents the events a listener wishes to subscribe too

Registers a listener to a list of notifications. The reporter will send notification of events to all registered listeners

@api @overload report(count, &block) @overload report(count, seed, &block) @param [Integer] count the number of examples being run @param [Integer] seed the seed used to randomize the spec run @param [Block] block yields itself for further reporting.

Initializes the report run and yields itself for further reporting. The block is required, so that the reporter can manage cleaning up after the run.

### Warning:

The `seed` argument is an internal API and is not guaranteed to be supported in the future.

@example

    reporter.report(group.examples.size) do |r|
      example_groups.map {|g| g.run(r) }
    end

[Validate]