
Tap::parser::sourcehandler::pgtap is a set of tools for postgresql unit testing. it contains the pg_prove and pg_tapgen scripts, which allows running and harnessing pgtap tests on command-line, and summarizing the results.
the corresponding postgresql extension is contained in the postgresql-pgtap package.
tap is the test anything protocol (http://testanything.org/).