lua-TestMore


Overview

lua-TestMore is a port of the Perl5 module Test::More.

It uses the Test Anything Protocol as output, that allows a compatibility with the Perl QA ecosystem. For example, prove a basic CLI, or Smolder a Web-based Continuous Integration Smoke Server.

It's an extensible framework. See lua-TestAssertion an extension which provides many Lua friendly assertions.

It allows a simple and efficient way to write tests (without OO style).

Some tests could be marked as TODO or skipped.

Errors could be fully checked with error_like().

References

Ian Langworth, chromatic, Perl Testing O'Reilly, 2005

Status

It's developed for Lua 5.1, 5.2, 5.3 & 5.4.

Download

lua-TestMore source can be downloaded from Framagit.

Installation

The easiest way to install lua-TestMore is to use LuaRocks:

luarocks install lua-testmore

or manually, with:

make install

The Lua Test Suite

Now, the test suite has its own repository on https://fperrad.frama.io/lua-Harness/.

Copyright &copy 2009-2021 François Perrad

This library is licensed under the terms of the MIT/X11 license, like Lua itself.