Chapter 158. Developing with pgTAP tests

Table of Contents

Setting up pgTAP on your development server
Running pgTAP tests

Setting up pgTAP on your development server

Currently, Evergreen pgTAP tests expect a version of pgTAP (0.93) that is not yet available in the packages for most Linux distributions. Therefore, you will have to install pgTAP from source as follows:

  1. Download, make, and install pgTAP on your database server. pgTAP can be downloaded from http://pgxn.org/dist/pgtap/ and the instructions for building and installing the extension are available from http://pgtap.org/documentation.html
  2. Create the pgTAP extension in your Evergreen database. Using psql, connect to your Evergreen database and then issue the command:

    CREATE EXTENSION pgtap;