UnitAutogen is a single executable, unitautogen. You point it at a PostgreSQL database and it reads your functions and triggers, writes the tests, runs them, and reports honest coverage, with no test written by hand. The tests it produces are standard pgTAP, so they run with SELECT runtests(...) or pg_prove just like tests you would author yourself.
It works with any PostgreSQL 14 to 18, self-hosted or managed. That includes Supabase, Neon, Amazon RDS and Aurora, and Azure Database for PostgreSQL, wherever you can enable the pgTAP and plpgsql_check extensions.
Everything is organised as four commands. Each shares the same basic options and prints one line per routine plus a summary.
RAISE messages. Enterprise edition.unitautogen --schema public
unitautogen integration --schema public
unitautogen seccover --schema public
unitautogen seccover --pii --schema public
UnitAutogen never gives you a fabricated, false-passing, or flaky test. If a branch cannot be tested reliably, the report tells you so, in plain language, rather than showing a green that would mislead you. Every report comes back with no failing and no false tests, and a visible, explained gap always beats a false pass.
AI coding assistants write database logic fast, and that is where a silent mistake costs the most, a wrong WHERE, a dropped INSERT, a policy loosened in one edit and forgotten. UnitAutogen captures how your functions and triggers behave today and emits it as standard pgTAP tests you commit alongside your code, so the next change, human or AI, that alters that behaviour fails one of them before it reaches production. Wired into CI, it checks changes as fast as they are produced.