Class RSpec::Core::Formatters::BaseTextFormatter
In: lib/rspec/core/formatters/base_text_formatter.rb
Parent: BaseFormatter

Base for all of RSpec‘s built-in formatters. See RSpec::Core::Formatters::BaseFormatter to learn more about all of the methods called by the reporter.

@see RSpec::Core::Formatters::BaseFormatter @see RSpec::Core::Reporter

Methods

Constants

VT100_COLORS = { :black => 30, :red => 31, :green => 32, :yellow => 33, :blue => 34, :magenta => 35, :cyan => 36, :white => 37
VT100_COLOR_CODES = VT100_COLORS.values.to_set

Public Instance methods

@api public

Colorizes the output red for failure, yellow for pending, and green otherwise.

@param [String] string

@api public

Outputs commands which can be used to re-run failed examples.

@api public

Outputs the slowest examples in a report when using `—profile COUNT` (default 10).

@api public

Outputs summary with number of examples, failures and pending.

Protected Instance methods

[Validate]