I wrote a Lua library for automated randomized testing (somewhat like
Haskell's QuickCheck). It's written in pure Lua 5.1, and the only
dependency is lrandom (the May 2009 version).
For each test, you provide a pass/fail trial function and a list of
specifiers for the form of its (randomly generated) arguments. It runs a
series of trials, then returns pass/fail/error totals. The seeds that
fail or cause errors are displayed, and you can specify seeds to include
in all future trials (for regression testing).