Class DottedFormatter
In: lib/mspec/runner/formatters/dotted.rb
Parent: Object

Methods

after   before   exception   exception?   failure?   finish   new   print   register  

Attributes

exceptions  [R] 
tally  [R] 
timer  [R] 

Public Class methods

Public Instance methods

Callback for the MSpec :after event. Prints an indicator for the result of evaluating this example as follows:

  . = No failure or error
  F = An SpecExpectationNotMetError was raised
  E = Any exception other than SpecExpectationNotMetError

Callback for the MSpec :before event. Resets the +exception?+ and +failure+ flags.

Callback for the MSpec :exception event. Stores the ExceptionState object to generate the list of backtraces after all the specs are run. Also updates the internal +exception?+ and +failure?+ flags.

Returns true if any exception is raised while running an example. This flag is reset before each example is evaluated.

Returns true if all exceptions during the evaluation of an example are failures rather than errors. See ExceptionState#failure. This flag is reset before each example is evaluated.

Callback for the MSpec :finish event. Prints a description and backtrace for every exception that occurred while evaluating the examples.

A convenience method to allow printing to different outputs.

Creates the TimerAction and TallyAction instances and registers them. Registers self for the +:exception+, +:before+, +:after+, and +:finish+ actions.

[Validate]