Skip to content

API Reference

The current Lutest package API is intentionally small.

Here is the full surface in one place:

local t = require("@lib")
t.test(name, fn)
t.skip(name, fn)
t.only(name, fn)
t.todo(name)

Registers a normal test.

Registers a test that is shown in results but not executed.

Registers a focused test.

If any loaded module contains an only, normal tests are skipped and only focused tests run.

Registers planned coverage without executable code.

Use normal Luau assert.

Lutest does not add a second assertion DSL on top of Luau right now.