Testing module

skip

procedureextensionsince 0.28.0Source

Ends the test as skipped, from the procedure it is written in.

Example↗
needs_a_gpu :: (t: *Test) {
    skip(t, "no GPU on this machine");
} @test

This one is only checked to compile, not run.

skip :: (t: *Test, reason := "")

Ends the test as skipped, from the procedure it is written in.

Parameters

t: *Test
the running test.
reason := ""
why it is skipped; shown in the report.
Example↗
needs_a_gpu :: (t: *Test) {
    skip(t, "no GPU on this machine");
} @test

This one is only checked to compile, not run.

See also