Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

pgTAP

Free#8 of 28 in Database Testing Tools

pgTAP: A focused, free framework for testing PostgreSQL schemas, routines, data, and behavior. Ranked #8 of 28 in Database Testing Tools by our editors (8.0/10); pricing: Free plan; best for postgreSQL schema and routine testing.

8.0/10Editor score
pgTAP8.0 Visit pgTAP

At a glance

  • Editor score
    8.0 / 10
  • Pricing
    Free plan
  • Best for
    PostgreSQL schema and routine testing
  • Free plan
    Yes
  • Paid from
    Free
  • Schema migration tests
    Yes
  • Facts checked
    21 Sep 2026
pgTAP screenshot
  • Where it wins

    • Free and open source for PostgreSQL testing
    • Covers schemas, data, routines, views, rules, and triggers
    • Supports SQL scripts, xUnit-style functions, and pg_prove batches
  • Where it doesn't

    • Focused on PostgreSQL rather than multiple database systems
    • Requires self-hosted installation on a PostgreSQL host
    • Execution centers on SQL, PL/pgSQL, psql, and related tooling

Our verdict on pgTAP

pgTAP is an open-source PostgreSQL extension for writing database unit tests in SQL and PL/pgSQL. It is intended for developers and teams testing PostgreSQL-backed applications or extensions, with coverage for schema objects, data values, functions, procedures, views, rules, triggers, transactions, and rollback behavior. Tests can be authored as psql scripts or xUnit-style database functions.

The main advantage is depth within PostgreSQL. TAP-emitting assertion functions support checks for tables, columns, keys, constraints, related schema objects, and data comparisons, while separate testing capabilities cover functions, procedures, views, rules, and triggers. Setup and teardown support, transaction handling, rollback, and batch execution through pg_prove make it suitable for repeatable database test workflows. Integration with PostgreSQL, psql, pg_prove, and Perl TAP harnesses gives teams several ways to connect test execution to existing tooling.

pgTAP is free and open source, so its model avoids paid plan selection and focuses on installation and operation in a self-hosted PostgreSQL environment. That focus is also its main boundary: it is designed for PostgreSQL rather than broad, multi-database coverage, and its test language and execution model center on SQL, PL/pgSQL, PL/SQL, psql, and pg_prove. Choose pgTAP when PostgreSQL schema, routine, data, and behavior testing are the priority. Consider another category tool when the requirement is a hosted service or one testing several database systems through a shared platform.

Your product? Our editors can test pgTAP in depth and publish a review, labelled as paid · from $149/mo →

pgTAP pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on pgtap.org

pgTAP fact sheet

Free planYes
Paid fromFree
Database supportPostgreSQL
Schema migration testsYes
Stored procedure testsYes
Data quality checksYes
Test executionSelf_hosted
Test languageSQL, PL/pgSQL, PL/SQL
DeploymentSelf-hosted
PlatformsLinux
SupportCommunity, Docs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
Integrations4 integrations: PostgreSQL, psql, pg_prove, Perl TAP harnesses
PricingFree plan
Websitepgtap.org
Facts checked21 Sep 2026

pgTAP integrations

pgTAP lists 4 integrations on its own site.

  • PostgreSQL
  • psql
  • pg_prove
  • Perl TAP harnesses

Alternatives to pgTAP

See all pgTAP alternatives →

pgTAP vs the competition

Compare pgTAP with any tool side by side →

Used pgTAP? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used pgTAP for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — pgTAP 8.0/10

pgTAP is listed in our Database Testing Tools directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/pgtap/"><img src="https://www.itechguides.com/best/badge/pgtap.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update