TestRunner

Struct for running the tests.

Members

Enums

Status
enum Status

Current status of the test runner.

Functions

abortTests
void abortTests()

Force abort tests before completion.

nextTest
void nextTest()

Start next test.

runTests
void runTests()

Start the tests

Static functions

makeDisplay
Display makeDisplay()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

tests
TestCallback[][TestType] tests;

List of registered tests.

Structs

Register
struct Register(TestType type, TestCallback callback)

Helper template for registering tests

Variables

display
Display display;

Temporary display this test is running in. The object this points to will change every test, so make sure to not save the pointer, but use this reference instead.

status
Status status;

Current status of the test runner.

statusMessage
string statusMessage;

Message about the current status for the user.

Meta