struct Spectator::Formatting::Components::Totals
   
  
  Overview
Displays counts for each type of example result (pass, fail, error, pending).
Defined in:
spectator/formatting/components/totals.crConstructors
- 
        .new(examples : Int32, failures : Int32, errors : Int32, pending : Int32)
        
          
Creates the component with the specified counts.
 - 
        .new(counts)
        
          
Creates the component by pulling numbers from counts.
 
Class Method Summary
- 
        .colorize(counts)
        
          
Creates the component, but colors it whether there were pending or failed results.
 
Instance Method Summary
- 
        #to_s(io : IO) : Nil
        
          
Writes the counts to the output.
 
Instance methods inherited from class Object
  
  
    
      should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall Ushould(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should, should_eventually(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_eventually, should_never(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_never, should_not(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should_not(matcher : Spectator::Matchers::NilMatcher, message = nil, *, _file = __FILE__, _line = __LINE__)
should_not(matcher, message = nil, *, _file = __FILE__, _line = __LINE__) should_not
Constructor Detail
        
        def self.new(examples : Int32, failures : Int32, errors : Int32, pending : Int32)
        #
      
      
        Creates the component with the specified counts.
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.