struct Spectator::Formatting::Components::Totals


Displays counts for each type of example result (pass, fail, error, pending).

Defined in:



Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

should(matcher, message = nil) should, should_eventually(matcher, message = nil) should_eventually, should_never(matcher, message = nil) should_never, should_not(matcher, message = nil) should_not

Constructor Detail

def : Int32, failures : Int32, errors : Int32, pending : Int32) #

Creates the component with the specified counts.

[View source]
def #

Creates the component by pulling numbers from counts.

[View source]

Class Method Detail

def self.colorize(counts) #

Creates the component, but colors it whether there were pending or failed results. The component will be red if there were failures (or errors), yellow if there were pending/skipped tests, and green if everything passed.

[View source]

Instance Method Detail

def to_s(io) #

Writes the counts to the output.

[View source]