Skip to content

Class LuauTestRunner

Namespace: Apogee.Scripting
Assembly: Apogee.Scripting.dll

Runs the *.test.luau files under a folder, each in a VM of its own (so one file's globals, modules and worlds cannot touch another's). A file's describe bodies run as it loads; its cases then run in order, one frame at a time, with @engine/test.

public static class LuauTestRunner

Inheritance

object ← LuauTestRunner

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Methods

Discover(string)

The test files by path relative to the folder, in order; folders that start with a dot are skipped.

public static IReadOnlyList<string> Discover(string directory)

Parameters

directory string

Returns

IReadOnlyList<string>

Run(string, string?, TextWriter?, int)

public static TestRunResult Run(string directory, string? filter = null, TextWriter? output = null, int timeBudgetMilliseconds = 10000)

Parameters

directory string

filter string?

output TextWriter?

timeBudgetMilliseconds int

Returns

TestRunResult