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

Methods

Public Class methods

Public Instance methods

abort(seed)

Alias for finish

@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]