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