theory/pgtap
PostgreSQL Unit Testing Suite observed · 2026-08-28
Health v2 · maintenance only
71/100
- Activity 99
- Release rhythm 18
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6365
- days_rel: 333
- days_push: 10
- n_releases_24m: 1
Adoption not part of the score
1161 stars · 108 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
pgTAP is a unit testing framework for PostgreSQL written in PL/pgSQL and PL/SQL. It provides a comprehensive set of TAP-emitting assertion functions for testing schemas, functions, triggers, and query results, and integrates with TAP harnesses or xUnit-style testing.
Use cases
- unit test postgresql database functions
- verify database schema structure in tests
- test triggers and views in postgres
- run TAP-emitting database tests with a harness
- write xUnit-style tests inside postgres
- assert query results match expected sets
When to choose
- you develop PostgreSQL-backed applications and want to test the database itself
- you want TAP output compatible with existing test harnesses
- you need assertions for schema objects, functions, triggers, and result sets
When to avoid
- you use a database other than PostgreSQL
- you cannot install extensions on the database server host
- you only need application-level tests that happen to touch the database
Facets
library · maturity active
testing databases testing developer-tools windows cli postgresql tap unit-testing plpgsql database-testing xunit linux macos
3 sources
- readme: https://github.com/theory/pgtap · fetched 2026-08-28 · b166de304aeb
- homepage: https://pgtap.org · fetched 2026-08-29 · 4b8f48b581dd
- site_page: https://pgtap.org/documentation.html · fetched 2026-08-29 · 3a725d278fd3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| theory/pgtap | main | 71 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem