Expand description
htl test: discovery, one isolated Lua state per test file, compile, report.
The runner owns nothing about assertions. A test file requires a library; the
bundled default is htl.test (describe / it / expect, typed via test.d.tl).
Any library exposing run(filter) -> { passed, failed, failures } under the
module name the runner is told about plugs in the same way. A file that uses no
such library is judged at file level: it passes if it runs to completion.
Structs§
- File
Report - Outcome of one test file.
Constants§
- DEFAULT_
LIB - Module name of the bundled assertion library.
Functions§
- discover_
tests *_test.tlanywhere, plus every.tlunder a directory namedtests. Explicit file paths are always included. Skipstarget/,.git/,node_modules/.- lib_dir
- Directory holding the bundled
.d.tlfiles so the checker can see them (<tmp>/htl-lib-<version>/). Written on demand, only when content changes. - run_
test_ file - Run one test file in a fresh state.
libis the assertion library module to consult forrun(filter)after the file executed (default:htl.test).