module Stoertebeker

Defined in:

stoertebeker.cr
stoertebeker/client.cr
stoertebeker/client_messages.cr
stoertebeker/commands.cr
stoertebeker/dsl.cr
stoertebeker/server_responses.cr
stoertebeker/test_adapters/generic.cr
stoertebeker/test_adapters/microtest.cr
stoertebeker/test_adapters/minitest.cr
stoertebeker/version.cr

Constant Summary

DEFAULT_MICROTEST_REPORTERS = [Microtest::ProgressReporter.new, Microtest::ErrorListReporter.new, Microtest::SlowTestsReporter.new, Microtest::SummaryReporter.new] of Microtest::Reporter

FIXME use default reporters of microtest

Log = ::Log.for("Stoertebeker")
ROOT_PATH = File.real_path(File.join(File.dirname("/srv/crystaldoc.info/github-Ragmaanir-stoertebeker-v0.5.0/src/stoertebeker.cr"), ".."))
SOCKET_DIR = File.expand_path("./temp/")
SOCKET_FILE = File.join(SOCKET_DIR, "/app.stoertebeker")
VERSION = {{ (`shards version /srv/crystaldoc.info/github-Ragmaanir-stoertebeker-v0.5.0/src/stoertebeker`).strip.stringify }}

Class Method Summary

Macro Summary

Class Method Detail

def self.run(ctx : Stoertebeker::Context = Stoertebeker::Context.new, &) #

Starts the electron server and client, yields the block with the Context and terminates the electron server after the block finishes.


[View source]
def self.wait_for(msg = "wait_for timed out", tries = 5, delay = 1.0, &block : -> Bool) #

Waits for the block tries times to return true, waiting delay ms after each try.


[View source]

Macro Detail

macro run_microtest(reporters = Stoertebeker::DEFAULT_MICROTEST_REPORTERS, &server) #

[View source]
macro run_minitest(&server) #

[View source]
macro run_tests(test_context, test_runner, &server) #

[View source]