module Spectator::Formatting::Summary

Overview

Mix-in providing common output for summarized results. Implements the following methods: Formatter#start_dump, Formatter#dump_pending, Formatter#dump_failures, Formatter#dump_summary, and Formatter#dump_profile. Classes including this module must implement #io.

Direct including types

Defined in:

spectator/formatting/summary.cr

Instance Method Summary

Instance Method Detail

def dump_failures(notification) #

Invoked after testing completes with a list of failed examples. This method will be called with an empty list if there were no failures. Called after #dump_pending and before #dump_summary.


[View source]
def dump_pending(notification) #

Invoked after testing completes with a list of pending examples. This method will be called with an empty list if there were no pending (skipped) examples. Called after #start_dump and before #dump_failures.


[View source]
def dump_profile(notification) #

Invoked after testing completes with profiling information. This method is only called if profiling is enabled. Called after #dump_failures and before #dump_summary.


[View source]
def dump_summary(notification) #

Invoked after testing completes with summarized information from the test suite. Called after #dump_failures and before #dump_profile.


[View source]
def start_dump #

[View source]