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, etc.) that can be used directly or work with continuous integration platforms (Jenkins, Maven, etc.). LuaUnit may be installed as a rock or directly added to your project. For simplicity, LuaUnit is contained into a single file and has no external dependency. LuaUnit may also be used as an assertion library, to validate assertions inside a running program. In addition, it provides a pretty stringifier that converts any type into a nicely formatted string (including complex nested or recursive tables).

Features

  • Documentation available
  • The command-line options provide a flexible interface to select tests by name or patterns
  • LuaUnit may also be used as an assertion library
  • Validate assertions inside a running program
  • Support for Lua 5.4
  • Choose test output style with environment variable LUAUNIT_OUTPUT

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow LuaUnit

LuaUnit Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of LuaUnit!

Additional Project Details

Programming Language

Lua

Related Categories

Lua Frameworks

Registered

2024-07-24