O'Reilly logo

Continuous Integration, Delivery, and Deployment by Sander Rossel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing pgTap

The installation guide for Linux is on http://pgtap.org/, but I will take you through it here as well as I had some issues with the documentation. The bad news about pgTap is that it works best on Linux. It can work on Windows, but it is a bit of a hassle and you need Perl, so I am not going to guide you through it. So, we are going to install pgTap on the server that runs PostgreSQL, which is our Linux server. First, we need to download the latest version (0.97.0 at the time of writing). After that, we need to unzip the downloaded file and build it using make (as described in the docs). After that, we can run the installation script so PostgreSQL installs all the necessary scripts for testing our code:

sudo apt-get update ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required