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, ...).
Thanks for the commit, but it does not pass the CI. All failures have to do with lua 5.1 but I don't see anything suspricious in your code yet.
To be investigated.
I'll merge if you can pass the CI or if I can identify the problem and fix it.