Skip to content

test_factory_pgtap

A framework for managing test data

test_factory · A framework for managing test data

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101806test_factory_pgtaptest_factory0.1.0FEATBSD-2-ClauseSQL
Relationships
Requirespgtap test_factory

Usage

Sources:

test_factory_pgtap — A system for managing unit test data in Postgres. Use it when an application needs this specific database capability. Its extension dependencies must be installed and validated first.

Core Workflow

CREATE EXTENSION test_factory_pgtap;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Important Objects

  • tf.tap(table_name text , set_name text DEFAULT 'base') is an extension function and returns SETOF text.

Requirements and Caveats

  • The reviewed control file declares default version 0.1.0.
  • Install the confirmed extension dependencies first: pgtap, test_factory.
  • The control file marks the extension as non-relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader