Skip to content

test

luau
local test = require("@std/test")

WARNING

These APIs are still open to future evolution. In new major versions, they may change in backwards incompatible ways.

Summary

EntryDescription
_registered
caseRegisters an anonymous (top-level) test case with the given name.
suiteRegisters a test suite with name, using registerFn to define its test cases.

Functions and Properties

test._registered

luau
() -> ()

test.case

Registers an anonymous (top-level) test case with the given name.

luau
(name: string, case: Test) -> ()

test.suite

Registers a test suite with name, using registerFn to define its test cases.

luau
(name: string, registerFn: (TestSuite) -> ()) -> ()