Available for PostgreSQL, free in the Community Edition

Unit tests for your database logic, without writing them.

For developers who own functions, procedures and triggers nobody has unit-tested.

How to do it

Free in the Community Edition. Three steps.

  1. Install pgTAP and plpgsql_check in the target database, and download the binary.
  2. Point it at a throwaway copy by setting UNITAUTOGEN_DSN or the standard PG* variables.
  3. Generate, run and measure. Unit testing is the default command:
unitautogen --schema public --out unit_tests --html report.html --json report.json

What each test asserts

Return value

Scalar results and result sets, compared to the recorded output.

Rows written

What the branch inserted, updated or deleted, so a broken branch fails.

Errors raised

The exact error an exception path produces.

How it fits your day

What platforms suggest

The tools PostgreSQL and Supabase point you to for testing database logic.