class Microtest::ExecutionContext

Defined in:

microtest/execution_context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(reporters : Array(Reporter), suites : Array(::Microtest::Test.class), random_seed : UInt32 = Random.new_seed) #

[View source]

Instance Method Detail

def abort!(info : AbortionInfo) #

[View source]
def aborted? #

[View source]
def abortion_info : AbortionInfo | Nil #

[View source]
def duration #

[View source]
def ended_at : Time #

[View source]
def ended_at? : Time | Nil #

[View source]
def executed_tests #

[View source]
def failures : Array(TestFailure) #

[View source]
def failures? #

[View source]
def finished #

[View source]
def focus? : Bool #

[View source]
def halted? #

[View source]
def manually_abort! #

[View source]
def manually_aborted? : Bool #

[View source]
def random : Random #

[View source]
def random_seed : UInt32 #

[View source]
def record_abortion(meth : TestMethod, duration : Time::Span) #

[View source]
def record_result(meth : TestMethod, duration : Time::Span, exc : TestException | Nil) #

[View source]
def reporters : Array(Reporter) #

[View source]
def results : Array(TestResult) #

[View source]
def skips #

[View source]
def started #

[View source]
def started_at : Time #

[View source]
def success? #

[View source]
def suites : Array(Test.class) #

[View source]
def test_suite(name : String, &) #

[View source]
def total_failure #

[View source]
def total_skip #

[View source]
def total_success #

[View source]
def total_tests #

[View source]