← All packages

luaunit-for-mudlet

LuaUnit for Mudlet: Lightweight Testing Kit

Download .mpackage
Version
1
Author
demonnic
Created
19 Mar 2020
Updated
6 Feb 2025

Install from Mudlet's command line

mpkg install luaunit-for-mudlet

Mudlet 4.20+ with mpkg installed

Or drag it in

Drag into MudletDrop it on the main window

Mudlet 4.11+ · click to download instead

Description

LuaUnit is a modified testing framework specifically adapted for Mudlet, allowing developers to run unit tests directly within the Mudlet environment. It replaces standard Lua print and io.write functions with Mudlet-compatible alternatives and removes OS exit calls to prevent accidental Mudlet closure. Users can install the package via an mpackage file or manually include the luaunit.lua file, enabling straightforward unit testing of Mudlet scripts with familiar assertion methods like 'lum.assertEquals'.


This package was originally shared on the Mudlet Forums by the author. We’ve automatically listed it here on packages.mudlet.org so more users can discover and benefit from it. Please let us know if you have any questions or concerns - thanks for contributing to the Mudlet community!

Script (1)

Files (3)

113 KB unpacked

Select a script or file on the left to preview it here.