All Projects → theory → Pgtap

theory / Pgtap

PostgreSQL Unit Testing Suite

Projects that are alternatives of or similar to Pgtap

doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 4,434 (+602.69%)
Mutual labels:  unit-testing, testing-framework
cpptest
🛠️ Powerful, yet simple, C++ unit testing framework; new home after https://sourceforge.net/projects/cpptest/
Stars: ✭ 51 (-91.92%)
Mutual labels:  unit-testing, testing-framework
test-drive
The simple testing framework
Stars: ✭ 37 (-94.14%)
Mutual labels:  unit-testing, testing-framework
Ut
UT: C++20 μ(micro)/Unit Testing Framework
Stars: ✭ 507 (-19.65%)
Mutual labels:  unit-testing, testing-framework
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+497.46%)
Mutual labels:  unit-testing, testing-framework
testza
Full-featured test framework for Go! Assertions, fuzzing, input testing, output capturing, and much more! 🍕
Stars: ✭ 409 (-35.18%)
Mutual labels:  unit-testing, testing-framework
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-96.83%)
Mutual labels:  unit-testing, testing-framework
Automation Arsenal
Curated list of popular Java and Kotlin frameworks, libraries and tools related to software testing, quality assurance and adjacent processes automation.
Stars: ✭ 105 (-83.36%)
Mutual labels:  unit-testing, testing-framework
Doctest
The fastest feature-rich C++11/14/17/20 single-header testing framework
Stars: ✭ 3,568 (+465.45%)
Mutual labels:  unit-testing, testing-framework
Awesome Unit Testing Swift
A curated collection of awesome blog articles, books, talks, podcasts, tools/frameworks and examples.
Stars: ✭ 272 (-56.89%)
Mutual labels:  unit-testing, testing-framework
tau
A Micro (1k lines of code) Unit Test Framework for C/C++
Stars: ✭ 121 (-80.82%)
Mutual labels:  unit-testing, testing-framework
Bach
Bach Testing Framework
Stars: ✭ 392 (-37.88%)
Mutual labels:  unit-testing, testing-framework
Blog
Everything about database,business.(Most for PostgreSQL).
Stars: ✭ 6,330 (+903.17%)
Mutual labels:  plpgsql, pgsql
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (-93.5%)
Mutual labels:  unit-testing, testing-framework
Zunit
A powerful testing framework for ZSH projects
Stars: ✭ 140 (-77.81%)
Mutual labels:  unit-testing, tap
phpPgAdmin6
PHP7+ Based administration tool for PostgreSQL 9.3+
Stars: ✭ 45 (-92.87%)
Mutual labels:  plpgsql, pgsql
tropic
🍍 Test Runner Library
Stars: ✭ 29 (-95.4%)
Mutual labels:  tap, unit-testing
Ava
Node.js test runner that lets you develop with confidence 🚀
Stars: ✭ 19,458 (+2983.68%)
Mutual labels:  unit-testing, tap
Deepstate
A unit test-like interface for fuzzing and symbolic execution
Stars: ✭ 603 (-4.44%)
Mutual labels:  unit-testing, testing-framework
Otj Pg Embedded
Java embedded PostgreSQL component for testing
Stars: ✭ 559 (-11.41%)
Mutual labels:  unit-testing

pgTAP 1.1.0

pgTAP is a unit testing framework for PostgreSQL written in PL/pgSQL and PL/SQL. It includes a comprehensive collection of TAP-emitting assertion functions, as well as the ability to integrate with other TAP-emitting test frameworks. It can also be used in the xUnit testing style. For detailed documentation, see the documentation in doc/pgtap.mmd or online.

PGXN version Build Status

To build it, just do this:

make
make install
make installcheck

If you encounter an error such as:

"Makefile", line 8: Need an operator

You need to use GNU make, which may well be installed on your system as gmake:

gmake
gmake install
gmake installcheck

If you encounter an error such as:

make: pg_config: Command not found

Or:

Makefile:52: *** pgTAP requires PostgreSQL 9.1 or later. This is .  Stop.

Be sure that you have pg_config installed and in your path. If you used a package management system such as RPM to install PostgreSQL, be sure that the -devel package is also installed. If necessary tell the build process where to find it:

env PG_CONFIG=/path/to/pg_config make && make install && make installcheck

And finally, if all that fails, copy the entire distribution directory to the contrib/ subdirectory of the PostgreSQL source tree and try it there without pg_config:

env NO_PGXS=1 make && make install && make installcheck

If you encounter an error such as:

ERROR:  must be owner of database regression

You need to run the test suite using a super user, such as the default "postgres" super user:

make installcheck PGUSER=postgres

Once pgTAP is installed, you can add it to a database by connecting as a super user and running:

CREATE EXTENSION pgtap;

If you've upgraded your cluster to PostgreSQL 9.1 and already had pgTAP installed, you can upgrade it to a properly packaged extension with:

CREATE EXTENSION pgtap FROM unpackaged;

If you want to install pgTAP and all of its supporting objects into a specific schema, use the PGOPTIONS environment variable to specify the schema, like so:

PGOPTIONS=--search_path=tap psql -d mydb -f pgTAP.sql

If you want to install pgTAP and all of its supporting objects into a specific schema, use the SCHEMA clause to specify the schema, like so:

CREATE EXTENSION pgtap SCHEMA tap;

Dependencies

pgTAP requires PostgreSQL 9.1 or higher.

Copyright and License

Copyright (c) 2008-2020 David E. Wheeler. Some rights reserved.

Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.

IN NO EVENT SHALL DAVID E. WHEELER BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF DAVID E. WHEELER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

DAVID E. WHEELER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND DAVID E. WHEELER HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].