Skip to main content
forge-tests runs FORGE’s unit suites inside Play-In-Editor. There is no external CLI runner. On boot, every package’s *_tests.lua registers its suites and forge-tests runs them, printing a pass/fail summary to the Output Log. You use this package when writing tests for your own content.

Writing a suite

Each package builds a test object and registers suites and cases on it. The harness handles beforeAll/beforeEach/afterAll and a set of assertions.

Assertions

Exports

FORGE’s database persists across PIE runs. Tests that write rows must use run-unique ids (an os.time() prefix) or delete per-id in setup, or a stale row from a prior run fails the rerun.

How to read a run

A green boot logs: