TAP test
A regression test using the Perl TAP tools
A TAP test
is a regression test which uses the Perl TAP tools, which provide more flexible possibilities for testing than the SQL-based regression tests.
TAP tests
and the associated infrastructure were first added in PostgreSQL 9.4.
Prerequisites
- PostgreSQL must have been compiled with the
--enable-tap-tests
option - the Perl module
IPC::Run
must be present (this is widely available and often installed by default)
Change history
- PostgreSQL 15
PostgresNode
andTestLib
Perl modules moved to custom namespacePostgreSQL::Test
(b3b4d8e6)
- PostgreSQL 12
- option
TAP_TESTS
added for automatically enabling TAP tests in extensions (commit d3c09b9b)
- option
- PostgreSQL 9.4
- added (commit 7d0f493f)
Useful links
- How to run a specific regression test - November 2021 blog article by David Zhang / HighGo