struct Spectator::Report::Counts

Overview

Records the number of examples that had each type of result.

Defined in:

spectator/report.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher : Spectator::Matchers::TypeMatcher(U), message = nil, *, _file = __FILE__, _line = __LINE__) forall U
should(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(pass : Int32 = 0, fail : Int32 = 0, error : Int32 = 0, pending : Int32 = 0, remaining : Int32 = 0) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(pass _pass = @pass, fail _fail = @fail, error _error = @error, pending _pending = @pending, remaining _remaining = @remaining) #

[View source]
def error : Int32 #

def fail : Int32 #

def pass : Int32 #

def pending : Int32 #

def remaining : Int32 #

def remaining? #

Indicates whether there were skipped tests because of a failure causing the test suite to abort.


[View source]
def run #

[View source]
def total #

Total number of examples in the suite that were selected to run.


[View source]