Test¶
Import: import system.testing;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
Test¶
The runner dream test synthesizes calls one of these per @test function. Each case prints RUN <name> before its body and PASS <name> after it. An Assert.* failure, a panic or a trap ends the process, so the last RUN line names the case that was running.
run¶
Runs a named test body and records its success or failure.
run_with_timeout¶
The driver reads the limit back from the RUN line and stops a case that exceeds it.
run_async¶
Runs a named asynchronous test and records its success or failure.
run_async_with_timeout¶
Runs a named asynchronous test, failing if it exceeds timeout_ms milliseconds.