RepositoryLuaFRFrance
bluebird75

bluebird75/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, Maven, ...).

641stars
142forks
5issues
3views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: unit-testing

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: assertions

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: luaunit

#1 Repository Của Tuần

🧪 LuaUnit: xUnit-style testing for Lua in a single file

A lightweight Lua testing framework with detailed failure output and CI-friendly reports.

LuaUnit, created and maintained by Philippe Fremy, is a popular unit-testing framework for Lua. It follows the familiar xUnit interface style seen in tools like Python's unittest, JUnit, and NUnit, making it easy to adopt for developers who already know that testing pattern. The project is designed to be simple to add to a codebase, with LuaUnit contained in a single file and no external dependency.

✨ Highlights

  • xUnit-style interface: Provides a testing workflow familiar to users of unittest, JUnit, NUnit, and similar frameworks.
  • Single-file, no external dependency: Can be added directly to a project or installed as a LuaRocks module.
  • Multiple output formats: Supports Text, TAP, and JUnit outputs for direct use or integration with CI platforms such as Jenkins and Maven.
  • Detailed list comparison: Shows where lists start differing, where they match again, and prints common and differing parts for easier debugging.
  • Flexible command-line options: Lets users select tests by name or pattern, control output format, set verbosity, and more.
  • Assertion library and pretty stringifier: Can validate assertions inside a running program and format complex, nested, or recursive tables into readable strings.
  • Broad test coverage: The README states 99.5% code coverage, with the test suite run on Lua 5.1 to 5.5, LuaJIT 2.0, Windows Server, macOS, and Ubuntu.
  • Real-world adoption: Used in projects such as SchedMD/Slurm and MAD by CERN, according to the README.

💡 Why it matters

LuaUnit stands out because it focuses on practical debugging feedback, not just pass/fail results. The list difference analysis example in the README shows how it helps pinpoint exactly where expected and actual data diverge, which can save time when tests involve structured values. Its single-file distribution and optional LuaRocks installation also keep setup straightforward.

It fits well for Lua projects that need a familiar xUnit testing style, readable failure reports, and outputs that work with continuous integration systems. With documentation on Read the Docs and active maintenance on GitHub, it is a solid choice for both small scripts and larger Lua-based systems.


#Lua #LuaUnit #UnitTesting #CI #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC#
fluentassertions/fluentassertions

A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

3.8k
Nov 21, 2026
RepositoryC#
AwesomeAssertions/AwesomeAssertions

A fork of FluentAssertions controlled by the community.

1.2k
Nov 15, 2026
RepositoryJava
ORCID/ORCID-Source

ORCID Open Source Project

630
Nov 23, 2026
RepositoryLua
NvChad/NvChad

Blazing fast Neovim framework providing solid defaults and a beautiful UI, enhancing your neovim experience.

28.6k
Oct 24, 2026
RepositoryVim Script
neovim/neovim

Vim-fork focused on extensibility and usability

104.0k
Nov 23, 2026
RepositoryC
coolsnowwolf/lede

Lean's LEDE source

31.6k
Nov 20, 2026
RepositoryLua
nvim-telescope/telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.

19.9k
Nov 17, 2026
RepositoryLua
AstroNvim/AstroNvim

AstroNvim is an aesthetic and feature-rich neovim config that is extensible and easy to use with a great set of plugins

14.5k
Nov 18, 2026
RepositoryLua
xmake-io/xmake

🔥 A cross-platform build utility based on Lua

12.3k
Nov 23, 2026