Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

README.md

tests.shared (module)

Internal helpers shared by the tests toolbox tools. Not bound to a global — required by sibling tools via require(".shared").

Surface

  • M.DEFAULT_JSON / M.DEFAULT_MD — canonical report paths the engine test runner writes (/source/tmp/test_results.json, /source/tmp/test_results.md).
  • M.readReport(src) — read a JSON report from a VFS path, or pass a decoded table through unchanged.
  • M.diff(before, after) — classify every test in after relative to the before baseline: { newFailures, fixed, stillFailing, newTests, removedTests }.

Example

local shared = require(".shared")
local before = shared.readReport("/source/before.json")
local after = shared.readReport(shared.DEFAULT_JSON)
local d = shared.diff(before, after)
print(#d.newFailures .. " regressions")