module Microtest

Included Modules

Defined in:

microtest.cr
microtest/backtrace_printer.cr
microtest/dsl.cr
microtest/exceptions.cr
microtest/execution_context.cr
microtest/formatter.cr
microtest/json_reporter.cr
microtest/power_assert.cr
microtest/power_assert_formatter.cr
microtest/reporter.cr
microtest/reporters/description_reporter.cr
microtest/reporters/error_list_reporter.cr
microtest/reporters/progress_reporter.cr
microtest/reporters/slow_tests_reporter.cr
microtest/reporters/summary_reporter.cr
microtest/reporters/terminal_reporter.cr
microtest/runner.cr
microtest/string_utils.cr
microtest/termart.cr
microtest/test.cr
microtest/test_method.cr
microtest/test_result.cr
microtest/version.cr

Constant Summary

BACKTRACE_LINE_REGEX = /\A(.+):(\d+):(\d+) in \'(\S+)\'\z/

e.g.: "spec/spec_helper.cr:64:1 in '__crystal_main'"

COMMON_REPORTERS = [ErrorListReporter.new, SlowTestsReporter.new, SummaryReporter.new] of Reporter
CRYSTAL_DIR = find_crystal_root_path
DEFAULT_REPORTERS = [ProgressReporter.new] + COMMON_REPORTERS
MEHTOD_SEPARATOR = "#"
PROJECT_DIR = Dir.current
PROJECT_LIB_DIR = File.join(PROJECT_DIR, "lib")
PROJECT_SPEC_DIR = File.join(PROJECT_DIR, "spec")
PROJECT_SRC_DIR = File.join(PROJECT_DIR, "src")
VERSION = {{ (`shards version /srv/crystaldoc.info/gitlab-Ragmaanir-microtest-master/src/microtest`).strip.stringify }}

Class Method Summary

Macros inherited from module Microtest::GlobalHookDSL

after(&block) after, around(&block) around, before(&block) before

Class Method Detail

def self.bug(msg : String) #

[View source]
def self.fetch_seed : UInt32 #

[View source]
def self.find_crystal_root_path #

[View source]
def self.power_assert_formatter #

[View source]
def self.reporter_types(reporting : Symbol = :progress) #

[View source]
def self.run(reporters, random_seed = fetch_seed) #

[View source]
def self.run(reporting : Symbol = :progress, *args) #

[View source]
def self.run!(reporting : Symbol = :progress, *args) #

[View source]
def self.run!(*args) #

[View source]