LuaUnit

A unit testing framework for Lua

$ luarocks install luaunit

LuaUnit is a popular unit-testing framework for Lua, with an interface typical of xUnit libraries (Python unittest, Junit, NUnit, ...). It supports several output formats (Text, TAP, JUnit, ...) to be used directly or work with Continuous Integration platforms
(Jenkins, Hudson, ...).

For simplicity, LuaUnit is contained into a single-file and has no external dependency. To start using it, just add the file *luaunit.lua* to your project of install the rock (you need at least LuaRocks version 2.4.4 (due to old versions of wget being incompatible with GitHub https downloading)

Tutorial and reference documentation is available on
http://luaunit.readthedocs.org/en/latest/

LuaUnit may also be used as an assertion library, to validate assertions inside a running program. In addition, it provides a pretty stringifier which converts any type into a nicely formatted string (including complex nested or recursive tables).

For more information about LuaUnit, visit the website http://github.com/bluebird75/luaunit .

Versions

3.4-13 years ago142,849 downloads
3.3-16 years ago165,188 downloads
3.2.1-17 years ago250,135 downloads
2.1-17 years ago1,816 downloads

Dependencies

lua >= 5.1

Dependency for

du-mocks, Ena, luajls, NodeMCULuaMocks, resurfaceio-logger, wLuaUnit

Labels

Manifests