I've added a primitive regression test suite for the parser; maintenance/parserTest.php. It runs a bunch of wikitext fragments from parserTest.txt through the parser and compares the resulting HTML to the expected results.
Right now it still depends on the wiki configuration for a number of things and requires a workable wiki to be set up. As such some results may vary depending on the configuration such as what language it's set to. :P (I'd like ideally to have it runnable on a raw distribution tarball, using a mock database and requiring no configuration.)
Wil's added in a bunch of additional tests -- thanks, Wil! Please folks, add more test cases to the file... Ideally keep each case small and individual to make it easier to refer to them.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org