Testing module

temp_dir

procedure · 1 overloadsince 0.28.0Source

A directory for this test's files. jacket test creates it and deletes it after a pass (--keep-temp keeps it); subtests share their test's directory.

temp_dir :: (t: *Test, loc := #caller_location) -> string

A directory for this test's files. jacket test creates it and deletes it after a pass (--keep-temp keeps it); subtests share their test's directory.

Parameters

t: *Test
the running test, or any of its subtests.
loc := #caller_location
where the call is written, shown if the test was given no directory. Leave the default.

Returns

string

See also