struct Spectator::Runner
- Spectator::Runner
- Struct
- Value
- Object
Overview
Logic for executing examples and collecting results.
Included Modules
Defined in:
spectator/runner.crConstructors
- 
        .new(examples : Array(Example), formatter : Formatting::Formatter, run_flags : Spectator::RunFlags = RunFlags::None, random_seed : UInt64 | Nil = nil)
        
          Creates the runner. 
Instance Method Summary
- 
        #run : Bool
        
          Runs the spec. 
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 self.new(examples : Array(Example), formatter : Formatting::Formatter, run_flags : Spectator::RunFlags = RunFlags::None, random_seed : UInt64 | Nil = nil)
        #
      
      
        Creates the runner. The collection of examples should be pre-filtered and shuffled. This runner will run each example in the order provided. The formatter will be called for various events.
Instance Method Detail
        
        def run : Bool
        #
      
      
        Runs the spec. This will run the provided examples and invoke the reporters to communicate results. True will be returned if the spec ran successfully, or false if there was at least one failure.