class Microtest::Test

Included Modules

Defined in:

microtest/test.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from module Microtest::PowerAssert

assert_raises(exception_type : E.class, file : String = __FILE__, line : String = __LINE__, &) forall E assert_raises

Constructor Detail

def self.new(context : Microtest::ExecutionContext) #

[View source]

Class Method Detail

def self.run_tests(ctx : ExecutionContext) : Nil #

[View source]
def self.selected_test_methods(ctx : ExecutionContext) #

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

[View source]
def self.test_methods #

[View source]
def self.using_focus? #

[View source]

Instance Method Detail

def after_hooks #

[View source]
def around_hooks(&block) #

[View source]
def before_hooks #

[View source]
def context : ExecutionContext #

[View source]
def pass #

[View source]
def run_test(meth : TestMethod, &block) #

[View source]

Macro Detail

macro fail(msg = "failed", file = __FILE__, line = __LINE__) #

[View source]
macro skip(msg = "skipped", file = __FILE__, line = __LINE__) #

[View source]