gleamunison/cli_test

gleamunison test <file.lisp> — run every test_ definition under a recording Test handler and attest the results into the codebase store. The loop this closes: test outcomes stop being chat and become evidence attached to content hashes — “did you test it?” becomes a lookup.

Types

Attachments produced by a run: subject hash + human payload, in order.

pub type Attachments =
  List(#(String, String))

Values

pub fn command(args: List(String)) -> Nil
pub fn run_file(
  path: String,
  adapter: storage.StorageAdapter,
) -> Result(
  #(List(test_runner.TestResult), List(#(String, String))),
  String,
)

Load a suite file, run it, attach evidence per subject hash. Returns results plus the (subject_hex, payload) pairs attested.

✨ Search Document