The default command. A full pgTAP suite for every function and trigger, run for you, measured.
The database URL goes in the DATABASE_URL environment variable. There is no command-line flag for it.
export DATABASE_URL=postgresql://user:pass@host:5432/mydb
unitautogen --schema public
On Windows PowerShell, set it with $env:DATABASE_URL="postgresql://user:pass@host:5432/mydb". The standard PG* variables work too. Connecting →
Unit testing is the default command, so there is no command word. On Supabase, run unitautogen --supabase --schema public from your project. It connects to the local Supabase database itself.
Coverage is measured by running the tests. Each uncovered line is tagged with whose problem it is.
Can never run. Contradictory conditions named. Usually a real bug.
Exception handler valid data cannot reach. Untested by default; opt in.
No test could be produced for this line. Reported plainly.
NOT_TESTABLE with a reason
UnitAutogen uses exactly the tools PostgreSQL and Supabase point you to.
plpgsql_check, the PL/pgSQL linter. UnitAutogen uses it to measure real line and branch coverage. Supabase, plpgsql_check →