busted

Lua unit testing framework focused on ease of use

Install

All systems
curl cmd.cat/busted.sh
Debian Debian
apt-get install lua-busted
Ubuntu
apt-get install lua-busted
Alpine
apk add lua-busted
image/svg+xml Kali Linux
apt-get install lua-busted
Windows (WSL2)
sudo apt-get update sudo apt-get install lua-busted
Raspbian
apt-get install lua-busted
Docker
docker run cmd.cat/busted busted powered by Commando

lua-busted

Lua unit testing framework focused on ease of use

busted test specs read naturally without being too verbose. You can even chain asserts and negations, such as assert.not.equals. Nest blocks of tests with contextual descriptions using describe, and add tags to blocks so you can run arbitrary groups of tests. An extensible assert library allows you to extend and craft your own assert functions specific to your case with method chaining. A modular output library lets you add on your own output format, along with the default pretty and plain terminal output, JSON with and without streaming, and TAP-compatible output that allows you to run busted specs within most CI servers. You can even register phrases for internationaliation with custom or built-in language packs.