Skip to content
AEOWUN
Docs Menu

Test

Look up test calls and properties.

test.complete(name, passed)

Record the result of an in-game test.

Arguments

name: string. passed: bool.

Returns

nil.

Works with

In-game script test results.

Missing values and errors

Wrong argument counts or types report an error.

Also available as: complete_test.

debug.log(test.complete("score_add", true))

test.is_completed(name)

Check whether a test has finished.

Arguments

name: string.

Returns

bool. False if no result is recorded.

Works with

In-game script test results.

Missing values and errors

Wrong argument counts or types report an error.

Also available as: is_test_completed.

debug.log(test.is_completed("score_add"))

test.passed(name)

Read a recorded test result.

Arguments

name: string.

Returns

bool, or nil if not completed.

Works with

In-game script test results.

Missing values and errors

Wrong argument counts or types report an error.

Also available as: test_passed.

debug.log(test.passed("score_add"))

test.summary()

Read test totals.

Arguments

No arguments.

Returns

[passed, failed, total] numbers.

Works with

In-game script test results.

Missing values and errors

Wrong argument counts or types report an error.

Also available as: test_summary.

debug.log(test.summary())

[BETA] marks features newer than the current public release. Current release: 0.8.0.