Forest Logo
search
package_2

testable

By @horsenuggets

Roblox

Mirrored

testable

A Luau testing framework based off of TestEZ. Testable extends TestEZ with parallel test execution and support for Lune, allowing you to run tests outside of the Roblox environment.

Usage

local Testable = require("@devpackages/testable")

local testRoot = path.to.Tests
local results, passed = Testable.run({ testRoot })

if passed then
    print("All tests passed!")
else
    print("Some tests failed.")
end

See the TestEZ documentation for details on writing tests.

Configuration

Configure Testable using Testable.configure():

local Testable = require("@devpackages/testable")

Testable.configure({
    AlphabeticalSort = false,  -- Sort test results alphabetically
    Indent = "   ",            -- Indentation string for test output
    MaxConcurrency = 4,        -- Maximum parallel tests
    Parallel = true,           -- Enable parallel test execution
    PrintSkipped = false,      -- Show skipped tests in output
    Verbose = false,           -- Enable verbose logging
})
OptionTypeDefaultDescription
AlphabeticalSortbooleanfalseSort test results alphabetically instead of definition order
Indentstring" "Indentation string used for nested test output
MaxConcurrencynumber4Maximum number of tests to run in parallel
ParallelbooleantrueEnable or disable parallel test execution
PrintSkippedbooleanfalseInclude skipped tests in the output
VerbosebooleanfalseEnable detailed logging during test execution

Reset configuration to defaults with Testable.resetConfig().

Package Details

Install command (Click to copy)


Version

1.1.4

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.