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/power_assert.cr
microtest/power_assert_formatter.cr
microtest/reporter.cr
microtest/reporters/description_reporter.cr
microtest/reporters/error_list_reporter.cr
microtest/reporters/json_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
CYAN = RGB.new(0, 205, 205)
DARK_GRAY = RGB.new(100, 100, 100)
DEFAULT_REPORTERS = [ProgressReporter.new] + COMMON_REPORTERS
GREEN = RGB.new(0, 220, 0)
LIGHT_BLUE = RGB.new(90, 90, 250)
LIGHT_GRAY = RGB.new(200, 200, 200)
LIGHT_MAGENTA = RGB.new(220, 0, 220)
MAGENTA = RGB.new(205, 0, 205)
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")
RED = RGB.new(220, 0, 0)
VERSION = {{ (`shards version /srv/crystaldoc.info/github-Ragmaanir-microtest-v1.2.7/src/microtest`).strip.stringify }}
WHITE = RGB.new(255, 255, 255)
YELLOW = RGB.new(220, 220, 0)

Class Method Summary

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]