Beta

UnitAutogen for PostgreSQL

Point it at a PostgreSQL database. It writes the pgTAP tests, seeds the data, runs them and reports coverage.

Download Get started
Standard pgTAP for PostgreSQL 14 to 18. Needs pgTAP and plpgsql_check in the target database.
UnitAutogen Database Coverage Report with four summary cards and a per-routine table showing branch and statement coverage
One run produces the Database Coverage Report, with click-through to every routine's annotated source.

The one guarantee

Never a fabricated, false-passing, or flaky test.

What it does

Five capabilities, three editions.

Coverage

Free

Unit and trigger tests, run for you. Line and branch coverage, including dynamic SQL. Every uncovered line explained.

Learn more →

Integration testing

Team

Each function run with what it calls and what it fires. Coverage across the whole call map.

Learn more →

Security coverage

Enterprise

RLS policies and tenant isolation through your functions, views and triggers, with evidence per routine.

Learn more →

PII audit

Enterprise

Personal data caught escaping through error and RAISE messages, the leak nobody writes a test for.

Learn more →

HIPAA evidence

Enterprise

Access control, audit-log and integrity evidence in one stamped report, mapped to the HIPAA Security Rule.

Learn more →

One command, one run

unitautogen --schema public --out unit_tests --html report.html --json report.json

What comes out

What every routine gets

Requirements

Correctness. Isolation. Compliance.

Made for developers, with evidence your security and compliance teams need.

Correctness

Unit and integration tests that check your logic returns what it should. Unit tests are free.

Unit and integration testing →

Isolation

Tests that show one tenant cannot read another's rows, through the policies or through code that bypasses them.

Tenant isolation and security →

Compliance

Dated reports you can rerun and give your auditor, for HIPAA and SOC 2 access controls.

Compliance evidence →