pgUnitTest is a tool for running a unit test suite on PostgreSQL databases. Unit tests can be either a comparison between an expected result and the actual result of a query or an insert using random data generators.