lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,

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).

There's more documentation and source at:
  http://silentbicycle.com/projects/lunatest/

This is the first public release. I have been using it for a few weeks,
including on itself, and its features have stabilized.

Any feedback is welcome. :)

Scott Vokes