[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [ANN] Lunatest - new randomized testing library
- From: Scott Vokes <vokes.s@...>
- Date: Sat, 20 Jun 2009 21:09:38 -0400
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:
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. :)