{"id":14063382,"url":"https://github.com/theory/pgtap","last_synced_at":"2025-05-14T18:05:40.535Z","repository":{"id":533686,"uuid":"162838","full_name":"theory/pgtap","owner":"theory","description":"PostgreSQL Unit Testing Suite","archived":false,"fork":false,"pushed_at":"2025-04-28T23:08:27.000Z","size":4527,"stargazers_count":1042,"open_issues_count":41,"forks_count":95,"subscribers_count":43,"default_branch":"main","last_synced_at":"2025-04-28T23:29:43.470Z","etag":null,"topics":["pgsql","pgtap","psql","tap","testing","testing-framework","testing-library","unit-testing"],"latest_commit_sha":null,"homepage":"https://pgtap.org","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theory.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2009-03-30T03:02:59.000Z","updated_at":"2025-04-28T23:08:29.000Z","dependencies_parsed_at":"2023-02-14T00:00:21.680Z","dependency_job_id":"ecedd62a-e10d-4cb9-bf49-b9965e4c8c57","html_url":"https://github.com/theory/pgtap","commit_stats":{"total_commits":1171,"total_committers":51,"mean_commits":22.96078431372549,"dds":0.1622544833475662,"last_synced_commit":"c2472af4a8179d9bb841167afe351b5a48cb3020"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theory%2Fpgtap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theory%2Fpgtap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theory%2Fpgtap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theory%2Fpgtap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theory","download_url":"https://codeload.github.com/theory/pgtap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198514,"owners_count":22030965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pgsql","pgtap","psql","tap","testing","testing-framework","testing-library","unit-testing"],"created_at":"2024-08-13T07:03:18.804Z","updated_at":"2025-05-14T18:05:35.527Z","avatar_url":"https://github.com/theory.png","language":"PLpgSQL","readme":"pgTAP 1.3.4\n============\n\n[pgTAP](https://pgtap.org) is a unit testing framework for PostgreSQL written\nin PL/pgSQL and PL/SQL. It includes a comprehensive collection of\n[TAP](https://testanything.org)-emitting assertion functions, as well as the\nability to integrate with other TAP-emitting test frameworks. It can also be\nused in the xUnit testing style. For detailed documentation, see the\ndocumentation in `doc/pgtap.mmd` or\n[online](https://pgtap.org/documentation.html \"Complete pgTAP Documentation\").\n\n[![PGXN version](https://badge.fury.io/pg/pgtap.svg)](https://badge.fury.io/pg/pgtap)\n[![🐘 Postgres](https://github.com/theory/pgtap/actions/workflows/test.yml/badge.svg)](https://github.com/theory/pgtap/actions/workflows/test.yml)\n\npgTAP must be installed on a host with PostgreSQL server running; it cannot\nbe installed remotely.\n\nTo build it, just do this:\n\n    make\n    make install\n    make installcheck\n\nIf you encounter an error such as:\n\n    \"Makefile\", line 8: Need an operator\n\nYou need to use GNU make, which may well be installed on your system as\n`gmake`:\n\n    gmake\n    gmake install\n    gmake installcheck\n\nIf you encounter an error such as:\n\n    make: pg_config: Command not found\n\nOr:\n\n    Makefile:52: *** pgTAP requires PostgreSQL 9.1 or later. This is .  Stop.\n\nBe sure that you have `pg_config` installed and in your path. If you used a\npackage management system such as RPM to install PostgreSQL, be sure that the\n`-devel` package is also installed. If necessary tell the build process where\nto find it:\n\n    env PG_CONFIG=/path/to/pg_config make \u0026\u0026 make install \u0026\u0026 make installcheck\n\nAnd finally, if all that fails, copy the entire distribution directory to the\n`contrib/` subdirectory of the PostgreSQL source tree and try it there without\n`pg_config`:\n\n    env NO_PGXS=1 make \u0026\u0026 make install \u0026\u0026 make installcheck\n\nIf you encounter an error such as:\n\n    ERROR:  must be owner of database regression\n\nYou need to run the test suite using a super user, such as the default\n\"postgres\" super user:\n\n    make installcheck PGUSER=postgres\n\nIf you encounter an error such as:\n\n    ERROR: Missing extensions required for testing: citext isn ltree\n\nInstall the PostgreSQL\n[Additional Supplied Modules](https://www.postgresql.org/docs/current/contrib.html),\nwhich are required to run the tests. If you used a package management system\nsuch as RPM to install PostgreSQL, install the `-contrib` package.\n\nOnce pgTAP is installed, you can add it to a database by connecting as a super\nuser and running:\n\n    CREATE EXTENSION pgtap;\n\nIf you've upgraded your cluster to PostgreSQL 9.1 and already had pgTAP\ninstalled, you can upgrade it to a properly packaged extension with:\n\n    CREATE EXTENSION pgtap FROM unpackaged;\n\nIf you want to install pgTAP and all of its supporting objects into a specific\nschema, use the `SCHEMA` clause to specify the schema, like so:\n\n    CREATE EXTENSION pgtap SCHEMA tap;\n\nDependencies\n------------\n\npgTAP requires PostgreSQL 9.1 or higher.\n\nCopyright and License\n---------------------\n\nCopyright (c) 2008-2023 David E. Wheeler. Some rights reserved.\n\nPermission to use, copy, modify, and distribute this software and its\ndocumentation for any purpose, without fee, and without a written agreement is\nhereby granted, provided that the above copyright notice and this paragraph\nand the following two paragraphs appear in all copies.\n\nIN NO EVENT SHALL DAVID E. WHEELER BE LIABLE TO ANY PARTY FOR DIRECT,\nINDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST\nPROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN\nIF DAVID E. WHEELER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nDAVID E. WHEELER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A\nPARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN \"AS IS\" BASIS,\nAND DAVID E. WHEELER HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,\nUPDATES, ENHANCEMENTS, OR MODIFICATIONS.\n","funding_links":[],"categories":["PLpgSQL","Testing"],"sub_categories":["Zabbix"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheory%2Fpgtap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheory%2Fpgtap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheory%2Fpgtap/lists"}